summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1315943.js
blob: 9aabb6f198ea3b0167cda3e2a5a9664f0a414776 (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({newCompartment: true});
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");