From 81c511bdbc46ca7729a7dc7adbc54f35279dc0ad Mon Sep 17 00:00:00 2001 From: Calvin Metcalf Date: Thu, 19 Jun 2014 11:31:52 -0400 Subject: [PATCH] fixes #157, Reflect.Loader.prototype.newModule --- lib/loader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/loader.js b/lib/loader.js index 57ffe66..85602c0 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -949,6 +949,9 @@ function logloads(loads) { has: function(name) { return !!this._loader.modules[name]; }, + newModule: function (obj) { + return new Module(obj); + }, set: function(name, module) { if (!(module.__esModule)) throw new TypeError('Set must be a module');