Source code

Revision control

Copy as Markdown

Other Tools

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);
}