1 2 3 4 5 6 7 8 9 10 11 12 13 14
var g = newGlobal(); g.parent = this; g.hits = 0; g.eval("new Debugger(parent).onExceptionUnwind = function () { hits++; };"); function f() { var x = f(); } try { f(); } catch (e) { assertEq(e instanceof InternalError, true); } finally { assertEq(g.hits, 0); }