diff --git a/imports/emscripten/emscripten_test.go b/imports/emscripten/emscripten_test.go index a68aa93774..5bad84a137 100644 --- a/imports/emscripten/emscripten_test.go +++ b/imports/emscripten/emscripten_test.go @@ -30,7 +30,7 @@ var growWasm []byte // invokeWasm was generated by the following: // -// cd testdata; wat2wasm --debug-names invoke.wat +// cd testdata; wasm-tools parse invoke.wat -o invoke.wasm // //go:embed testdata/invoke.wasm var invokeWasm []byte diff --git a/imports/emscripten/testdata/invoke.wasm b/imports/emscripten/testdata/invoke.wasm index b2020dec78..aaa241a56f 100644 Binary files a/imports/emscripten/testdata/invoke.wasm and b/imports/emscripten/testdata/invoke.wasm differ diff --git a/imports/emscripten/testdata/invoke.wat b/imports/emscripten/testdata/invoke.wat index 15acbb0332..ee49a8ff13 100644 --- a/imports/emscripten/testdata/invoke.wat +++ b/imports/emscripten/testdata/invoke.wat @@ -15,9 +15,9 @@ (table 22 22 funcref) (global $__stack_pointer (mut i32) (i32.const 65536)) - (func $stackSave (export "stackSave") (result i32) + (func $stackSave (export "emscripten_stack_get_current") (result i32) global.get $__stack_pointer) - (func $stackRestore (export "stackRestore") (param i32) + (func $stackRestore (export "_emscripten_stack_restore") (param i32) local.get 0 global.set $__stack_pointer) (func $setThrew (export "setThrew") (param i32 i32))