summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/onNewScript-03.js
blob: a725430395d816af1cc426d16e6fe854bfc1b1b5 (plain)
1
2
3
4
5
6
7
var g = newGlobal({newCompartment: true});
var dbg = Debugger(g);
dbg.onNewScript = function (s) {
    eval(longScript);
}
const longScript = "var x = 1;\n" + new Array(5000).join("x + ") + "x";
g.eval(longScript);