1
// defineProperty can't re-define non-configurable properties.
2
// Also: when defineProperty throws, the exception is native to the debugger
3
// compartment, not a wrapper.
5
var g = newGlobal('new-compartment');
6
var dbg = new Debugger;
7
var gw = dbg.addDebuggee(g);
8
gw.defineProperty("p", {value: 1});
14
gw.defineProperty("p", {value: 2});
18
assertEq(exc instanceof TypeError, true);
19
assertEq(typeof exc.message, "string");
20
assertEq(typeof exc.stack, "string");
22
assertEq(threw, true);