summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/directiveless/bug1877358.js
blob: 8d512efcfe320e4db004c85b3c028c503ed7b0d5 (plain)
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');
}