summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1254190.js
blob: 0d95ce76fb4ede42611246e9a1af335da25970e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| error: out of memory; slow;

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

var g = newGlobal();
var dbg = new Debugger(g);
dbg.onNewScript = function (s) {
  log += dbg.findScripts({ source: s.source }).length;
}
log = "";
oomTest(() => {
    var static  = newGlobal();
    g.eval("(function() {})()");
});