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

Commit beb908f

Browse files
committed
Merge pull request #154 from ulrikdem/loader-constructor
Set Loader.prototype.constructor
2 parents cc7af3d + 2189876 commit beb908f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/loader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ function logloads(loads) {
880880
// importPromises adds ability to import a module twice without error - https://bugs.ecmascript.org/show_bug.cgi?id=2601
881881
var importPromises = {};
882882
Loader.prototype = {
883+
constructor: Loader,
883884
define: function(name, source, options) {
884885
if (importPromises[name])
885886
throw new TypeError('Module is already loading.');

0 commit comments

Comments
 (0)