blob: 1f8fad0e433483444bdb495ae12cccae141f38ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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');
}
|