From 1f86a0d274ca32c646c1e6b1a0d69531571de481 Mon Sep 17 00:00:00 2001 From: ncave <777696+ncave@users.noreply.github.com> Date: Wed, 10 Jun 2020 14:02:20 -0700 Subject: [PATCH 1/2] Fixed missing exports --- bin/asinit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/asinit b/bin/asinit index 930cdfbb98..7752a8d531 100755 --- a/bin/asinit +++ b/bin/asinit @@ -316,7 +316,9 @@ function ensureIndexJs() { fs.writeFileSync(indexFile, [ "const fs = require(\"fs\");", "const loader = require(\"@assemblyscript/loader\");", - "module.exports = loader.instantiateSync(fs.readFileSync(__dirname + \"/build/optimized.wasm\"), { /* imports */ })" + "const imports = { /* imports go here */ };", + "const wasmModule = loader.instantiateSync(fs.readFileSync(__dirname + \"/build/optimized.wasm\"), imports);", + "module.exports = wasmModule.exports;" ].join("\n") + "\n"); console.log(colors.green(" Created: ") + indexFile); } else { From cbcd9e729584d96bf98f09531c4dd07bc7785836 Mon Sep 17 00:00:00 2001 From: ncave <777696+ncave@users.noreply.github.com> Date: Wed, 10 Jun 2020 14:12:38 -0700 Subject: [PATCH 2/2] Updated contribution list --- NOTICE | 1 + 1 file changed, 1 insertion(+) diff --git a/NOTICE b/NOTICE index 2d41975541..a260a70483 100644 --- a/NOTICE +++ b/NOTICE @@ -23,6 +23,7 @@ under the licensing terms detailed in LICENSE: * Surma * Julien Letellier * Guido Zuidhof +* ncave <777696+ncave@users.noreply.github.com> Portions of this software are derived from third-party works licensed under the following terms: