Source code
Revision control
Copy as Markdown
Other Tools
// 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);