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

if (typeof oomTest !== "function")
  quit();

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