[Pkg-javascript-commits] [dojo] 12/29: refs #18438, Loader only strips strict-mode directive with double quotes
    David Prévot 
    taffit at moszumanska.debian.org
       
    Thu Mar 24 04:28:34 UTC 2016
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.8.11
in repository dojo.
commit e04f560cc7a7198f09d7b368c3d25d9871937fa7
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 7d3e76f..aedd81e 100644
--- a/dojo.js
+++ b/dojo.js
@@ -1334,7 +1334,7 @@
 			evalModuleText = function(text, module){
 				// see def() for the injectingCachedModule bracket; it simply causes a short, safe curcuit
 				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