summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1254123.js
blob: 72f36ef3ec2595e9f3eac8a5402fd6fb2c154f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| skip-if: !('oomTest' in this)

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({sameZoneAs: this});
})
`);