summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1248162.js
blob: 6deadfdc07c74f16ffc4516416900b2f640cf5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| allow-oom

// 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});
})