summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1260725.js
blob: 7719c70b51c5696e7caa026fd684482732642241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error: out of memory

if (!('oomTest' in this))
  throw new Error("out of memory");

var dbg = new Debugger;
dbg.onNewGlobalObject = function(global) {
  dbg.memory.takeCensus({});
};
oomTest(function() {
  newGlobal({})
});