michael@0: // Debugger.Object.prototype.defineProperty with too few arguments throws. michael@0: michael@0: load(libdir + "asserts.js"); michael@0: michael@0: var g = newGlobal(); michael@0: var dbg = new Debugger; michael@0: var gw = dbg.addDebuggee(g); michael@0: assertThrowsInstanceOf(function () { gw.defineProperty("x"); }, TypeError);