1 2 3 4 5 6 7 8
// Redundant non-global Debugger() arguments are ignored. var g = newGlobal(); g.eval("var a = {}, b = {};"); var dbg = Debugger(g.a, g.b); var arr = dbg.getDebuggees(); assertEq(arr.length, 1); assertEq(arr[0], dbg.addDebuggee(g));