blob: eb47556973c8767909d738026e22225e623d87e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Ensure that ScriptDebugEpilogue gets called when onExceptionUnwind
// terminates execution.
var g = newGlobal();
var dbg = Debugger(g);
var frame;
dbg.onExceptionUnwind = function (f, x) {
frame = f;
assertEq(frame.live, true);
return null;
};
dbg.onDebuggerStatement = function(f) {
assertEq(f.eval('throw 42'), null);
assertEq(frame.live, false);
};
g.eval('debugger');
|