summaryrefslogtreecommitdiff
path: root/cli/system_loader.js
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-09-30 18:51:19 +1000
committerGitHub <noreply@github.com>2020-09-30 18:51:19 +1000
commit23a7ea9c8548d46f16862fde6d9e96a215a9e01a (patch)
treec81de51cbfa0e23e7284ec2d12d882553993f194 /cli/system_loader.js
parent7c62b7b0434314fee1355ccfa2a95aea2a9cc01e (diff)
fix: bundle loader returns exported value (#7764)
Fixes: #7761
Diffstat (limited to 'cli/system_loader.js')
-rw-r--r--cli/system_loader.js5
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;
};
}