diff options
author | Alon Zakai <azakai@google.com> | 2023-10-23 12:31:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 12:31:10 -0700 |
commit | 2134d9a32b89b5b30121956bbfb070b8c9ee2bd5 (patch) | |
tree | 02644ac9a217b472420d119ab9f937ed845417c1 /test/wasm2js/emscripten.2asm.js.opt | |
parent | 68ff52b278acb95201967709640733a05d6a683a (diff) | |
download | binaryen-2134d9a32b89b5b30121956bbfb070b8c9ee2bd5.tar.gz binaryen-2134d9a32b89b5b30121956bbfb070b8c9ee2bd5.tar.bz2 binaryen-2134d9a32b89b5b30121956bbfb070b8c9ee2bd5.zip |
Partially revert #6026 (#6043)
That optimization uncovered some LLVM and Binaryen bugs.
Diffstat (limited to 'test/wasm2js/emscripten.2asm.js.opt')
-rw-r--r-- | test/wasm2js/emscripten.2asm.js.opt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/wasm2js/emscripten.2asm.js.opt b/test/wasm2js/emscripten.2asm.js.opt index 1faf11933..caef23896 100644 --- a/test/wasm2js/emscripten.2asm.js.opt +++ b/test/wasm2js/emscripten.2asm.js.opt @@ -70,6 +70,10 @@ function asmFunc(imports) { FUNCTION_TABLE[HEAP32[257]](); } + function other() { + main(); + } + function foo() { wasm2js_trap(); } @@ -213,7 +217,7 @@ function asmFunc(imports) { return { "main": main, - "other": main, + "other": other, "__growWasmMemory": __growWasmMemory, "exported": internal, "sub_zero": sub_zero, |