summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1248162.js
blob: 825b3376e4c83031c64c1c8cf403e8560b54713e (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| allow-oom; skip-if: !('oomTest' in this)

// Adapted from randomly chosen test: js/src/jit-test/tests/debug/Debugger-onNewGlobalObject-01.js
for (var i = 0; i < 9; ++i) {
  var dbg = new Debugger;
  dbg.onNewGlobalObject = function() {};
}
// jsfunfuzz-generated
oomTest(function() {
  newGlobal({sameZoneAs: this});
})