diff options
Diffstat (limited to 'cli/system_loader.js')
-rw-r--r-- | cli/system_loader.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/system_loader.js b/cli/system_loader.js index c96b2c7f6..8c083fccc 100644 --- a/cli/system_loader.js +++ b/cli/system_loader.js @@ -44,14 +44,15 @@ let System, __instantiate; function gE(exp) { return (id, v) => { - v = typeof id === "string" ? { [id]: v } : id; - for (const [id, value] of Object.entries(v)) { + const e = typeof id === "string" ? { [id]: v } : id; + for (const [id, value] of Object.entries(e)) { Object.defineProperty(exp, id, { value, writable: true, enumerable: true, }); } + return v; }; } |