summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/onExceptionUnwind-12.js
blob: 78874ddea676380e9bb65f9e3bcd59a89b696332 (plain)
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);
}