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

Commit cd4ccff

Browse files
committed
Merge pull request #158 from calvinmetcalf/newLoader
fixes #157, Reflect.Loader.prototype.newModule
2 parents beb908f + 81c511b commit cd4ccff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,9 @@ function logloads(loads) {
949949
has: function(name) {
950950
return !!this._loader.modules[name];
951951
},
952+
newModule: function (obj) {
953+
return new Module(obj);
954+
},
952955
set: function(name, module) {
953956
if (!(module.__esModule))
954957
throw new TypeError('Set must be a module');

0 commit comments

Comments
 (0)