summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/exceptions/bug-1747704.js
blob: f9f429296150c8c2ba7a9aa995bb2a7f08ee26d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let {shouldTrap} = wasmEvalText(`(module
  (func
    try
      i32.const 0
      table.get 0
      ref.is_null
      drop
    catch_all
    end
  )
  (table 0 funcref)
  (export "shouldTrap" (func 0))
)`).exports;
assertErrorMessage(shouldTrap, WebAssembly.RuntimeError, /table index/);