summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-debuggees-13.js
blob: de9262cba3af7a24b51d2ac7c91f2e0a74c55079 (plain)
1
2
3
4
5
6
7
8
9
// Removing a debuggee does not detach the debugger from a compartment if another debuggee is in it.
var g1 = newGlobal();
var g2 = g1.eval("newGlobal('same-compartment')");
var dbg = new Debugger(g1, g2);
var hits = 0;
dbg.onDebuggerStatement = function (frame) { hits++; };
dbg.removeDebuggee(g1);
g2.eval("debugger;");
assertEq(hits, 1);