diff options
Diffstat (limited to 'test/wasm2js')
-rw-r--r-- | test/wasm2js/dot_import.2asm.js | 6 | ||||
-rw-r--r-- | test/wasm2js/dot_import.2asm.js.opt | 6 | ||||
-rw-r--r-- | test/wasm2js/emscripten.2asm.js | 6 | ||||
-rw-r--r-- | test/wasm2js/emscripten.2asm.js.opt | 6 | ||||
-rw-r--r-- | test/wasm2js/func_ptrs.2asm.js | 7 |
5 files changed, 5 insertions, 26 deletions
diff --git a/test/wasm2js/dot_import.2asm.js b/test/wasm2js/dot_import.2asm.js index a35eabe95..0cd48aaf1 100644 --- a/test/wasm2js/dot_import.2asm.js +++ b/test/wasm2js/dot_import.2asm.js @@ -13,12 +13,8 @@ function asmFunc(imports) { var Math_sqrt = Math.sqrt; var mod_ule = imports["mod.ule"]; var base = mod_ule["ba.se"]; - function $0() { - base(); - } - return { - "exported": $0 + "exported": base }; } diff --git a/test/wasm2js/dot_import.2asm.js.opt b/test/wasm2js/dot_import.2asm.js.opt index a35eabe95..0cd48aaf1 100644 --- a/test/wasm2js/dot_import.2asm.js.opt +++ b/test/wasm2js/dot_import.2asm.js.opt @@ -13,12 +13,8 @@ function asmFunc(imports) { var Math_sqrt = Math.sqrt; var mod_ule = imports["mod.ule"]; var base = mod_ule["ba.se"]; - function $0() { - base(); - } - return { - "exported": $0 + "exported": base }; } diff --git a/test/wasm2js/emscripten.2asm.js b/test/wasm2js/emscripten.2asm.js index 8ba8564ce..52412f676 100644 --- a/test/wasm2js/emscripten.2asm.js +++ b/test/wasm2js/emscripten.2asm.js @@ -61,10 +61,6 @@ function asmFunc(imports) { exported(1 | 0) | 0; } - function other() { - main(); - } - function foo() { wasm2js_trap(); } @@ -222,7 +218,7 @@ function asmFunc(imports) { return { "main": main, - "other": other, + "other": main, "__growWasmMemory": __growWasmMemory, "exported": exported, "sub_zero": sub_zero, diff --git a/test/wasm2js/emscripten.2asm.js.opt b/test/wasm2js/emscripten.2asm.js.opt index caef23896..1faf11933 100644 --- a/test/wasm2js/emscripten.2asm.js.opt +++ b/test/wasm2js/emscripten.2asm.js.opt @@ -70,10 +70,6 @@ function asmFunc(imports) { FUNCTION_TABLE[HEAP32[257]](); } - function other() { - main(); - } - function foo() { wasm2js_trap(); } @@ -217,7 +213,7 @@ function asmFunc(imports) { return { "main": main, - "other": other, + "other": main, "__growWasmMemory": __growWasmMemory, "exported": internal, "sub_zero": sub_zero, diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js index 4b7c4fd44..ccd220152 100644 --- a/test/wasm2js/func_ptrs.2asm.js +++ b/test/wasm2js/func_ptrs.2asm.js @@ -27,16 +27,11 @@ function asmFunc(imports) { return a - 2 | 0 | 0; } - function $6($0) { - $0 = $0 | 0; - print($0 | 0); - } - return { "one": $3, "two": $4, "three": $5, - "four": $6 + "four": print }; } |