summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1566992.js
blob: 52d2c0710cd13d7e79ee39bf2f708109f34c627e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let { exports: { f } } = wasmEvalText(`
(module
    (func (export "f")
        (block
            i64.const 0xfffffffe00000000
            i32.wrap_i64
            br_table 0 1
        )
        unreachable
    )
)
`);

assertErrorMessage(f, WebAssembly.RuntimeError, /unreachable/);