summaryrefslogtreecommitdiff
path: root/src/js/wasm.js-post.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-11-14 15:49:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-12-07 16:50:03 -1000
commit5242ab0fe2ec18f249aafc34fd73a0b36d1e48ac (patch)
tree9fb48357fe8a1a343a909101e9262c2e88f99ff8 /src/js/wasm.js-post.js
parent2b0a4276cac1bb247e4f3a5e4333734a6e35794e (diff)
downloadbinaryen-5242ab0fe2ec18f249aafc34fd73a0b36d1e48ac.tar.gz
binaryen-5242ab0fe2ec18f249aafc34fd73a0b36d1e48ac.tar.bz2
binaryen-5242ab0fe2ec18f249aafc34fd73a0b36d1e48ac.zip
export the wasm table on Module
Diffstat (limited to 'src/js/wasm.js-post.js')
-rw-r--r--src/js/wasm.js-post.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js/wasm.js-post.js b/src/js/wasm.js-post.js
index 2b5ed69b2..02c99994e 100644
--- a/src/js/wasm.js-post.js
+++ b/src/js/wasm.js-post.js
@@ -308,6 +308,7 @@ function integrateWasmJS(Module) {
} else {
env['table'] = new Array(TABLE_SIZE); // works in binaryen interpreter at least
}
+ Module['wasmTable'] = env['table'];
}
if (!env['memoryBase']) {