diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/debug/onExceptionUnwind-05.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/debug/onExceptionUnwind-05.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,13 @@ +// |jit-test| debug +// onExceptionUnwind returning undefined does not affect the thrown exception. + +var g = newGlobal(); +g.parent = this; +g.eval("new Debugger(parent).onExceptionUnwind = function () {};"); + +var obj = new Error("oops"); +try { + throw obj; +} catch (exc) { + assertEq(exc, obj); +}