summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Object-getOwnPropertyDescriptor-02.js
blob: 7f5368d263fbdd00a4831ef2ee147715e55720e7 (plain)
1
2
3
4
5
6
7
8
// Property values that are objects are reflected as Debugger.Objects.

var g = newGlobal({newCompartment: true});
var dbg = Debugger();
var gobj = dbg.addDebuggee(g);
g.self = g;
var desc = gobj.getOwnPropertyDescriptor("self");
assertEq(desc.value, gobj.makeDebuggeeValue(g));