Debian Codegraph @

js/src/jit-test/tests/wasm/regress/bug1928993.js

raw
1 let { createArray } = wasmEvalText(`
2 (module
3 (type $a (array f64))
4
5 (func (export "createArray") (result anyref)
6 (array.new $a f64.const 4 i32.const 1)
7 )
8 )`).exports;
9
10 let a = createArray();
11
12 assertErrorMessage(() => {
13 wasmGcReadField(a, 2);
14 }, WebAssembly.RuntimeError, /index out of bounds/);