diff options
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r-- | src/wasm-js.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index 6a3e05725..50b35d464 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -174,6 +174,11 @@ extern "C" void EMSCRIPTEN_KEEPALIVE load_asm(char *input) { } } } + + void trap() { + std::cerr << "wasm trap!\n"; + abort(); + } }; instance = new ModuleInstance(*module, new JSExternalInterface()); |