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