summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1254123.js
blob: 51b2c8940d800ceb844da7cfa2748131c9b737af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| error: boom

if (!('oomTest' in this))
    throw new Error("boom");

evaluate(`
function ERROR(msg) {
  throw new Error("boom");
}
for (var i = 0; i < 9; ++ i) {
  var dbg = new Debugger;
  dbg.onNewGlobalObject = ERROR;
}
oomTest(function() {
  newGlobal();
})
`);