summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1404710.js
blob: 78a8bbb5b88020ba44f184d499d09645c680feb0 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !('stackTest' in this)
stackTest(new Function(`
    var g = newGlobal();
    var dbg = new Debugger(g);
    dbg.onDebuggerStatement = function (frame) {
        frame.evalWithBindings("x", {x: 2}).return;
    };
    g.eval("function f(y) { debugger; }");
    g.f(3);
`), false);