blob: 10cb54398a211486e86deb790cd2d8d8c56ae2d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| -P wasm_exceptions=false; 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');
}
|