null-call.js (441B)
1 // Bug 1747540 - two trap descriptors at the same address led to some confusion. 2 3 var ins = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary(` 4 (table 1 funcref) 5 (memory 1) 6 (func $test (export "test") (result i32) 7 (call_indirect (i32.const 0)) 8 (i32.load (i32.const 0)) 9 ) 10 `))) 11 assertErrorMessage(() => ins.exports.test(), 12 WebAssembly.RuntimeError, 13 /indirect call to null/);