summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1254190.js
blob: 74a4799c39c51e81faee054439351ac478a47202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| slow; allow-oom

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