Source code
Revision control
Copy as Markdown
Other Tools
// Debugger.Object.prototype.defineProperty with too few arguments throws.
load(libdir + "asserts.js");
var g = newGlobal({newCompartment: true});
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
assertThrowsInstanceOf(function () { gw.defineProperty("x"); }, TypeError);