Skip to content

Commit

Permalink
refs #18438, Loader only strips strict-mode directive with double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes authored and dylans committed Sep 11, 2015
1 parent 6fe6d9b commit 73086f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")){
Expand Down

0 comments on commit 73086f0

Please sign in to comment.