blob: bab342dd18993ada10006d2004a12bb0aa17e14c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// onExceptionUnwind assigning to argv[1] does not affect the thrown exception.
var g = newGlobal();
g.parent = this;
g.eval("function f(frame, exc) { f2 = function () { return exc; }; exc = 123; }");
g.eval("new Debugger(parent).onExceptionUnwind = f;");
var obj = new Error("oops");
try {
throw obj;
} catch (exc) {
assertEq(exc, obj);
}
|