diff options
author | Sam Clegg <sbc@chromium.org> | 2020-09-21 16:39:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 16:39:46 -0700 |
commit | ee00f647750f23e6c24e67424bafab39b244c835 (patch) | |
tree | e99f91b24cda95a3292eccb92fec09a0e168ca66 /test/wasm2js/indirect-select.2asm.js.opt | |
parent | 4d6e9ea2d1796c984e3ebc38d0b6abdf8049941a (diff) | |
download | binaryen-ee00f647750f23e6c24e67424bafab39b244c835.tar.gz binaryen-ee00f647750f23e6c24e67424bafab39b244c835.tar.bz2 binaryen-ee00f647750f23e6c24e67424bafab39b244c835.zip |
wasm2js: Support exported tables (#3152)
Diffstat (limited to 'test/wasm2js/indirect-select.2asm.js.opt')
-rw-r--r-- | test/wasm2js/indirect-select.2asm.js.opt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/wasm2js/indirect-select.2asm.js.opt b/test/wasm2js/indirect-select.2asm.js.opt index 424b91d4a..215e9941f 100644 --- a/test/wasm2js/indirect-select.2asm.js.opt +++ b/test/wasm2js/indirect-select.2asm.js.opt @@ -1,6 +1,7 @@ -import { FUNCTION_TABLE } from 'env'; +import { table } from 'env'; function asmFunc(global, env, buffer) { + var FUNCTION_TABLE = env.table; var HEAP8 = new global.Int8Array(buffer); var HEAP16 = new global.Int16Array(buffer); var HEAP32 = new global.Int32Array(buffer); @@ -38,6 +39,6 @@ function asmFunc(global, env, buffer) { } var memasmFunc = new ArrayBuffer(65536); -var retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); }},memasmFunc); +var retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); },table},memasmFunc); export var foo_true = retasmFunc.foo_true; export var foo_false = retasmFunc.foo_false; |