blob: 023a0cbf83e8ee4aa91c3450f91427435e3b5943 (
plain)
1
2
3
4
5
6
7
8
9
|
// defineProperty can add array elements, bumping length
var g = newGlobal({newCompartment: true});
g.a = g.Array(0, 1, 2);
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
var aw = gw.getOwnPropertyDescriptor("a").value;
aw.defineProperty(3, {configurable: true, enumerable: true, writable: true, value: 3});
assertEq(g.a.length, 4);
|