Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
1 // Check that an onExceptionUnwind hook can force a frame to throw a different exception.
3 load(libdir + "asserts.js");
5 var g = newGlobal();
6 var dbg = Debugger(g);
7 dbg.onExceptionUnwind = function (frame, exc) {
8 return { throw:"sproon" };
9 };
10 g.eval("function f() { throw 'ksnife'; }");
11 assertThrowsValue(g.f, "sproon");