blob: e8b23b7e99bef27b08fa0d53c4f7633a9436c698 (
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();
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);
|