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

var g = newGlobal();
var dbg = Debugger();
var gobj = dbg.addDebuggee(g);
g.self = g;
var desc = gobj.getOwnPropertyDescriptor("self");
assertEq(desc.value, gobj);