michael@0: // Don't crash when a scripted proxy handler throws Error.prototype. michael@0: michael@0: var g = newGlobal(); michael@0: var dbg = Debugger(g); michael@0: dbg.onDebuggerStatement = function (frame) { michael@0: try { michael@0: frame.arguments[0].deleteProperty("x"); michael@0: } catch (exc) { michael@0: return; michael@0: } michael@0: throw new Error("deleteProperty should throw"); michael@0: }; michael@0: michael@0: g.eval("function h(obj) { debugger; }"); michael@0: g.eval("h(Proxy.create({delete: function () { throw Error.prototype; }}));"); michael@0: