summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/onExceptionUnwind-05.js
blob: 6138e8963408ef4af49aa915073a603c24cfa4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// onExceptionUnwind returning undefined does not affect the thrown exception.

var g = newGlobal({newCompartment: true});
g.parent = this;
g.eval("new Debugger(parent).onExceptionUnwind = function () {};");

var obj = new Error("oops");
try {
    throw obj;
} catch (exc) {
    assertEq(exc, obj);
}