blob: daac3555e2bd0fd6f3acb2d29a18ab20d25ef76d (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Debugger.Object.prototype.unsafeDereference returns the referent directly.
var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
var gw = dbg.addDebuggee(g);
assertEq(gw.getOwnPropertyDescriptor('Math').value.unsafeDereference(), g.Math);
g.eval('var obj = {}');
assertEq(gw.getOwnPropertyDescriptor('obj').value.unsafeDereference(), g.obj);
|