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

Commit b4c02ba

Browse files
committed
dynamic only fix, url polyfill fix
1 parent ce86fa5 commit b4c02ba

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/dynamic-only.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030
console.assert(load.status == 'linked', 'is linked ' + load.name);
3131
return load.module.module;
3232
}
33+
34+
function doEnsureEvaluated() {}
3335
})();

src/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ function logloads(loads) {
542542
exc = addToError(exc, 'Error loading "' + load.name + '" at ' + (load.address || '<unknown>'));
543543
}
544544
else {
545-
exc = addToError(exc, 'Error linking "' + linkSet.loads[0].name + '" at ' + (linkSet.loads[0].address || '<unknwon>'));
545+
exc = addToError(exc, 'Error linking "' + linkSet.loads[0].name + '" at ' + (linkSet.loads[0].address || '<unknown>'));
546546
}
547547

548548

src/url-polyfill.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// from https://gist.github.com/Yaffle/1088850
1+
// from https://gist.github.com/Yaffle/1088850
2+
if (typeof URL === 'undefined')
3+
URL = (function() {
24
function URL(url, baseURL) {
35
if (typeof url != 'string')
46
throw new TypeError('URL must be a string');
@@ -64,4 +66,6 @@
6466
this.pathname = pathname;
6567
this.search = search;
6668
this.hash = hash;
67-
}
69+
}
70+
return URL;
71+
})();

0 commit comments

Comments
 (0)