[Pkg-javascript-commits] [dojo] 73/149: refs #18438, Loader only strips strict-mode directive with double quotes

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository dojo.

commit 73086f08fb5728c01df710f824257a29a8e5a02c
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
---
 dojo.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dojo.js b/dojo.js
index a5803b7..587b7a8 100644
--- a/dojo.js
+++ b/dojo.js
@@ -1373,7 +1373,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