summaryrefslogtreecommitdiff
path: root/test/wasm2js/emscripten.2asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/emscripten.2asm.js')
-rw-r--r--test/wasm2js/emscripten.2asm.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/wasm2js/emscripten.2asm.js b/test/wasm2js/emscripten.2asm.js
index 63e5a5923..31b87cd44 100644
--- a/test/wasm2js/emscripten.2asm.js
+++ b/test/wasm2js/emscripten.2asm.js
@@ -1,4 +1,4 @@
-function instantiate(asmLibraryArg, wasmMemory, wasmTable) {
+function instantiate(asmLibraryArg, wasmMemory, FUNCTION_TABLE) {
function asmFunc(global, env, buffer) {
"use asm";
@@ -32,7 +32,7 @@ function asmFunc(global, env, buffer) {
syscall$6(1 | 0, 2 | 0) | 0;
syscall$54(3 | 0, 4 | 0) | 0;
wasm2js_i32$0 = HEAP32[(0 + 1030 | 0) >> 2] | 0;
- FUNCTION_TABLE_v[wasm2js_i32$0 & 3]();
+ FUNCTION_TABLE[wasm2js_i32$0]();
}
function other() {
@@ -48,7 +48,8 @@ function asmFunc(global, env, buffer) {
}
// EMSCRIPTEN_END_FUNCS;
- var FUNCTION_TABLE_v = [foo, foo, bar, foo];
+ FUNCTION_TABLE[1] = foo;
+ FUNCTION_TABLE[2] = bar;
return {
main: main,
other: other