summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-725733.js
blob: d518ceb74bcb76c5a6c50dea76e781834e843bc3 (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({newCompartment: true});
g.eval(
    "function f(x) { return {q: x}; }\n" +
    "var n = f('').q;\n");
var dbg = new Debugger(g);
g.eval("f(0)");