summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1254190.js
blob: 3d3572b4697415f0c88d6f276e4e161a5c21eaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| slow; skip-if: !('oomTest' in this); 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() {})()");
});