summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1315943.js
blob: 8d68f47af40cf7e5fd5716c94bd67084295d21ce (plain)
1
2
3
4
5
6
7
8
9
10
11
var s = "{}";
for (var i = 0; i < 21; i++) s += s;
var g = newGlobal();
var dbg = Debugger(g);
dbg.onDebuggerStatement = function(frame) {
    var s = frame.eval("f").return.script;
};
g.eval("line0 = Error().lineNumber;\n" + "debugger;\n" + // line0 + 1
    "function f(i) {\n" + // line0 + 2
    s + // line0 + 3 ... line0 + where - 2
    "}\n");