diff options
Diffstat (limited to 'test/wasm2js/ordering.2asm.js')
-rw-r--r-- | test/wasm2js/ordering.2asm.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/wasm2js/ordering.2asm.js b/test/wasm2js/ordering.2asm.js index f3d879a99..9f452dcd5 100644 --- a/test/wasm2js/ordering.2asm.js +++ b/test/wasm2js/ordering.2asm.js @@ -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); @@ -61,5 +62,5 @@ 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 main = retasmFunc.main; |