Debian Codegraph @

js/src/jit-test/tests/debug/onExceptionUnwind-12.js

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