summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1404710.js
blob: 69aa078333f86339a8a00a870c6a7d305ec5dbb4 (plain)
1
2
3
4
5
6
7
8
9
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);