Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit c62ac77

Browse files
committed
remove with statement
1 parent 1d05ecc commit c62ac77

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dist/es6-module-loader-sans-promises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ function logloads(loads) {
10661066
})();
10671067

10681068
function __eval(__source, __global, __moduleName) {
1069-
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; with(__global) { (function() { ' + __source + ' \n }).call(__global); }');
1069+
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; (function() { ' + __source + ' \n }).call(__global);');
10701070
}
10711071

10721072
})(typeof global !== 'undefined' ? global : this);

dist/es6-module-loader-sans-promises.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/es6-module-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ function logloads(loads) {
17501750
})();
17511751

17521752
function __eval(__source, __global, __moduleName) {
1753-
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; with(__global) { (function() { ' + __source + ' \n }).call(__global); }');
1753+
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; (function() { ' + __source + ' \n }).call(__global);');
17541754
}
17551755

17561756
})(typeof global !== 'undefined' ? global : this);

dist/es6-module-loader.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ function logloads(loads) {
10661066
})();
10671067

10681068
function __eval(__source, __global, __moduleName) {
1069-
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; with(__global) { (function() { ' + __source + ' \n }).call(__global); }');
1069+
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; (function() { ' + __source + ' \n }).call(__global);');
10701070
}
10711071

10721072
})(typeof global !== 'undefined' ? global : this);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"main": "lib/index",
4040
"scripts": {
41-
"test": "node test/test"
41+
"test": "cd test && node test"
4242
},
4343
"dependencies": {
4444
"traceur": "0.0.41",

0 commit comments

Comments
 (0)