summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/oom/breakpoints.js
blob: a90f97739a7539cd737936f37467745e00e13a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !('oomTest' in this)

var dbgGlobal = newGlobal({newCompartment: true});
var dbg = new dbgGlobal.Debugger();
dbg.addDebuggee(this);

oomTest(() => {
  wasmEvalText(`
    (import "" "" (func $d))
    (func try call $d end)
  `);
});