summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/onExceptionUnwind-12.js
blob: c11bf74217f9c00fd6eb87ba30c26ed907fe01fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var g = newGlobal({newCompartment: true});
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);
}