summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-725733.js
blob: bdd2f21e31d78114c46a73531c045ed21823ef31 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test|
// Adding a debuggee must leave its scripts in a safe state.

var g = newGlobal();
g.eval(
    "function f(x) { return {q: x}; }\n" +
    "var n = f('').q;\n");
var dbg = new Debugger(g);
g.eval("f(0)");