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

Commit 0333996

Browse files
committed
module name fix
1 parent 80bf255 commit 0333996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ function logloads(loads) {
11001100
load.depsList = deps;
11011101
}
11021102
try {
1103-
eval('var __moduleName = "' + (load.name || '').replace('"', '\"') + '"; (function() { ' + __source + ' \n }).call(__global);');
1103+
eval('(function() { var __moduleName = "' + (load.name || '').replace('"', '\"') + '"; ' + __source + ' \n }).call(__global);');
11041104
}
11051105
catch(e) {
11061106
if (e.name == 'SyntaxError' || e.name == 'TypeError')

0 commit comments

Comments
 (0)