michael@0: // |jit-test| debug michael@0: // onExceptionUnwind returning undefined does not affect the thrown exception. michael@0: michael@0: var g = newGlobal(); michael@0: g.parent = this; michael@0: g.eval("new Debugger(parent).onExceptionUnwind = function () {};"); michael@0: michael@0: var obj = new Error("oops"); michael@0: try { michael@0: throw obj; michael@0: } catch (exc) { michael@0: assertEq(exc, obj); michael@0: }