summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/onNewScript-03.js
blob: 1471c3721b9fd215bb5518c1ba7d13566b72b3fe (plain)
1
2
3
4
5
6
7
var g = newGlobal();
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);