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

Commit 8707b92

Browse files
committed
Merge pull request #127 from guybedford/master
fixes #126, #124
2 parents 68f83b2 + c5e125c commit 8707b92

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ function logloads(loads) {
530530

531531
defineProperty(this, 'global', {
532532
get: function() {
533-
throw new TypeError('global accessor not provided by polyfill');
533+
return global;
534534
}
535535
});
536536
defineProperty(this, 'realm', {
@@ -590,6 +590,8 @@ function logloads(loads) {
590590
throw new TypeError('Eval not implemented in polyfill')
591591
},
592592
get: function(key) {
593+
if (!this._modules[key])
594+
return;
593595
ensureEvaluated(this._modules[key], this);
594596
return this._modules[key].module;
595597
},

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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ function logloads(loads) {
14461446

14471447
defineProperty(this, 'global', {
14481448
get: function() {
1449-
throw new TypeError('global accessor not provided by polyfill');
1449+
return global;
14501450
}
14511451
});
14521452
defineProperty(this, 'realm', {
@@ -1506,6 +1506,8 @@ function logloads(loads) {
15061506
throw new TypeError('Eval not implemented in polyfill')
15071507
},
15081508
get: function(key) {
1509+
if (!this._modules[key])
1510+
return;
15091511
ensureEvaluated(this._modules[key], this);
15101512
return this._modules[key].module;
15111513
},

0 commit comments

Comments
 (0)