blob: dc8fdfa74d6d6cae1c3f142f43303479a5aa2a8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
var g = newGlobal({newCompartment: true});
g.eval("x = Object.create({}, {y: {value: 1}});");
var dbg = new Debugger();
var dobj = dbg.addDebuggee(g);
var v = dobj.getOwnPropertyDescriptor("x").value;
var ex;
try {
v.defineProperties({y: {value: 2}});
} catch (e) {
ex = e;
}
nukeAllCCWs();
assertEq(ex instanceof TypeError, true);
assertEq(ex.stack, ""); // Nuked stack CCW.
|