blob: 0048c2f575fc3eff343dd61114b7740539dbf2b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
var g = newGlobal();
var dbg = Debugger(g);
dbg.onDebuggerStatement = function (frame) {
try {
frame.arguments[0].deleteProperty("x");
} catch (exc) {
assertEq(exc instanceof Debugger.DebuggeeWouldRun, true);
return;
}
throw new Error("deleteProperty should throw");
};
g.evaluate("function h(obj) { debugger; } \n" +
"h(new Proxy({}, \n" +
" { deleteProperty: function () { \n" +
" var e = new ReferenceError('diaf', 'fail'); \n" +
" throw e; \n" +
" } \n" +
" }));");
|