1 2 3 4 5 6 7 8 9 10 11 12 13 14
// |jit-test| 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'); }