summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1708124.js
blob: dc035b02e51e9c6672b555107fc0dea0c3f2742a (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !('oomTest' in this)
// Ensure that trap reporting mechanism doesn't crash under OOM conditions.

oomTest(
  wasmEvalText(
    `(module
       (func (export "f") (result)
         unreachable))`
  ).exports.f
);