blob: 0daf850754eb76a969635f28180f8af4af442a1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// findObjects' result includes objects referenced by other objects.
var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
var gw = dbg.addDebuggee(g);
g.eval('this.a = { b: {} };');
var bw = gw.makeDebuggeeValue(g.a.b);
var objects = dbg.findObjects();
assertEq(objects.indexOf(bw) != -1, true);
|