[Pkg-javascript-commits] [dojo] 16/41: refs #18438, Loader only strips strict-mode directive with double quotes
    David Prévot 
    taffit at moszumanska.debian.org
       
    Thu Mar 24 04:28:39 UTC 2016
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.9.8
in repository dojo.
commit fe5192eb18899d312d0013de90a7d102e9bfe9c9
Author: Bryan Forbes <bryan at reigndropsfall.net>
Date:   Fri Sep 11 09:29:27 2015 -0700
    refs #18438, Loader only strips strict-mode directive with double quotes
    
    (cherry picked from commit 73086f08fb5728c01df710f824257a29a8e5a02c)
---
 dojo.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dojo.js b/dojo.js
index 219b702..4f24fd1 100644
--- a/dojo.js
+++ b/dojo.js
@@ -1343,7 +1343,7 @@
 			evalModuleText = function(text, module){
 				// see def() for the injectingCachedModule bracket; it simply causes a short, safe circuit
 				if(has("config-stripStrict")){
-					text = text.replace(/"use strict"/g, '');
+					text = text.replace(/(["'])use strict\1/g, '');
 				}
 				injectingCachedModule = 1;
 				if(has("config-dojo-loader-catches")){
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
    
    
More information about the Pkg-javascript-commits
mailing list