summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-debuggees-14.js
blob: 491a116c09e7c83a6f4fede34e5774ae592f659b (plain)
1
2
3
4
5
6
7
8
// Adding a debuggee in a compartment that is already in debug mode works
// even if a script from that compartment is on the stack.

var g = newGlobal({newCompartment: true});
var dbg1 = Debugger(g);
var dbg2 = Debugger();
g.parent = this;
g.eval("parent.dbg2.addDebuggee(this);");