diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/wasm/directiveless/bug1877358.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/directiveless/bug1877358.js b/js/src/jit-test/tests/wasm/directiveless/bug1877358.js new file mode 100644 index 0000000000..1f8fad0e43 --- /dev/null +++ b/js/src/jit-test/tests/wasm/directiveless/bug1877358.js @@ -0,0 +1,14 @@ +// |jit-test| --no-wasm-exceptions; include:wasm.js + +let {test} = wasmEvalText(`(module + (func $m (import "" "m")) + (func (export "test") + call $m + ) +)`, {"": {m: () => {throw 'wrap me';}}}).exports; + +try { + test(); +} catch (err) { + assertEq(err, 'wrap me'); +} |