Debian Codegraph @

js/src/jit-test/tests/wasm/bug1908631.js

raw
1 // |jit-test| skip-if: !wasmIsSupported()
2
3 const bytes = wasmTextToBinary(`(module
4 (table 0 externref)
5 (func
6 block
7 unreachable
8 table.fill 0
9 )
10 )`);
11 assertEq(WebAssembly.validate(bytes), false);
12 assertErrorMessage(() => new WebAssembly.Module(bytes), WebAssembly.CompileError, /unable to read opcode/);