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

Commit 5d5242d

Browse files
committed
remove sourceURL checks
1 parent d439fa5 commit 5d5242d

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ function logloads(loads) {
445445
var options = { sourceMapGenerator: sourceMapGenerator };
446446

447447
var source = traceur.outputgeneration.TreeWriter.write(tree, options);
448+
448449
if (global.btoa)
449450
source += '\n//# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(options.sourceMap))) + '\n';
450451

@@ -456,7 +457,7 @@ function logloads(loads) {
456457
module.module = new Module(execute.apply(global, deps));
457458
}
458459

459-
__eval(source, global, module.address, module.name);
460+
__eval(source, global, module.name);
460461

461462
System.register = sysRegister;
462463
}
@@ -714,11 +715,9 @@ function logloads(loads) {
714715

715716
})();
716717

717-
function __eval(__source, global, __sourceURL, __moduleName) {
718+
function __eval(__source, global, __moduleName) {
718719
try {
719-
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; with(global) { (function() { ' + __source + ' \n }).call(global); }'
720-
+ (__sourceURL && !__source.match(/\/\/[@#] ?(sourceURL|sourceMappingURL)=([^\n]+)/)
721-
? '\n//# sourceURL=' + __sourceURL : ''));
720+
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; with(global) { (function() { ' + __source + ' \n }).call(global); }');
722721
}
723722
catch(e) {
724723
if (e.name == 'SyntaxError')

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: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,7 @@ function logloads(loads) {
13611361
var options = { sourceMapGenerator: sourceMapGenerator };
13621362

13631363
var source = traceur.outputgeneration.TreeWriter.write(tree, options);
1364+
13641365
if (global.btoa)
13651366
source += '\n//# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(options.sourceMap))) + '\n';
13661367

@@ -1372,7 +1373,7 @@ function logloads(loads) {
13721373
module.module = new Module(execute.apply(global, deps));
13731374
}
13741375

1375-
__eval(source, global, module.address, module.name);
1376+
__eval(source, global, module.name);
13761377

13771378
System.register = sysRegister;
13781379
}
@@ -1630,11 +1631,9 @@ function logloads(loads) {
16301631

16311632
})();
16321633

1633-
function __eval(__source, global, __sourceURL, __moduleName) {
1634+
function __eval(__source, global, __moduleName) {
16341635
try {
1635-
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; with(global) { (function() { ' + __source + ' \n }).call(global); }'
1636-
+ (__sourceURL && !__source.match(/\/\/[@#] ?(sourceURL|sourceMappingURL)=([^\n]+)/)
1637-
? '\n//# sourceURL=' + __sourceURL : ''));
1636+
eval('var __moduleName = "' + (__moduleName || '').replace('"', '\"') + '"; with(global) { (function() { ' + __source + ' \n }).call(global); }');
16381637
}
16391638
catch(e) {
16401639
if (e.name == 'SyntaxError')

0 commit comments

Comments
 (0)