michael@0: // |jit-test| debug michael@0: // onExceptionUnwind assigning to argv[1] does not affect the thrown exception. michael@0: michael@0: var g = newGlobal(); michael@0: g.parent = this; michael@0: g.eval("function f(frame, exc) { f2 = function () { return exc; }; exc = 123; }"); michael@0: g.eval("new Debugger(parent).onExceptionUnwind = f;"); 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: }