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