Source code
Revision control
Copy as Markdown
Other Tools
// findObjects' result doesn't include any duplicates.
var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
dbg.addDebuggee(g);
let objects = dbg.findObjects();
let set = new Set(objects);
assertEq(objects.length, set.size);