diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-09 17:41:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-09 17:54:55 -0800 |
commit | b91486c4e796e3a50bd1afe3a00135024131ff9f (patch) | |
tree | 5c831e6a827462d9aa40c7eb57bdbd5b4326fbe0 | |
parent | 5598931f54d2aefc0ea1550e41f424b830331a22 (diff) | |
download | binaryen-b91486c4e796e3a50bd1afe3a00135024131ff9f.tar.gz binaryen-b91486c4e796e3a50bd1afe3a00135024131ff9f.tar.bz2 binaryen-b91486c4e796e3a50bd1afe3a00135024131ff9f.zip |
use .exports
-rw-r--r-- | src/js/wasm.js-post.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/wasm.js-post.js b/src/js/wasm.js-post.js index ff52e9868..98b828076 100644 --- a/src/js/wasm.js-post.js +++ b/src/js/wasm.js-post.js @@ -145,11 +145,11 @@ function integrateWasmJS(Module) { info['env'] = env; var instance; instance = Wasm.instantiateModule(binary, info); - mergeMemory(instance.memory); + mergeMemory(instance.exports.memory); applyMappedGlobals(); - return instance; + return instance.exports; }; return; |