blob: 0b1c43bd14908b739ba3ded342f0314faf52978e (
plain)
1
2
3
4
5
6
7
8
9
10
|
// obj.defineProperty can define a data property with object value.
var g = newGlobal();
g.eval("var a = {};");
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
var desc = gw.getOwnPropertyDescriptor("a");
assertEq(desc.value instanceof Debugger.Object, true);
gw.defineProperty("b", desc);
assertEq(g.a, g.b);
|