diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-09-30 18:51:19 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 18:51:19 +1000 |
commit | 23a7ea9c8548d46f16862fde6d9e96a215a9e01a (patch) | |
tree | c81de51cbfa0e23e7284ec2d12d882553993f194 /cli/system_loader.js | |
parent | 7c62b7b0434314fee1355ccfa2a95aea2a9cc01e (diff) |
fix: bundle loader returns exported value (#7764)
Fixes: #7761
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; }; } |