summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-debuggees-02.js
blob: cc220edba331a86bc6a5b052c2dc74353344abec (plain)
1
2
3
4
5
6
7
8
9
10
// The array returned by getDebuggees is just a snapshot, not live.
var dbg = new Debugger;
var a1 = dbg.getDebuggees();
var g = newGlobal({newCompartment: true});
var gw = dbg.addDebuggee(g);
assertEq(gw instanceof Debugger.Object, true);
var a2 = dbg.getDebuggees();
assertEq(a2.length, 1);
assertEq(a2[0], gw);
assertEq(a1.length, 0);