comparison: js/src/jit-test/tests/debug/onExceptionUnwind-05.js
js/src/jit-test/tests/debug/onExceptionUnwind-05.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
equal
deleted
inserted
replaced
|
1 // |jit-test| debug |
|
2 // onExceptionUnwind returning undefined does not affect the thrown exception. |
|
3 |
|
4 var g = newGlobal(); |
|
5 g.parent = this; |
|
6 g.eval("new Debugger(parent).onExceptionUnwind = function () {};"); |
|
7 |
|
8 var obj = new Error("oops"); |
|
9 try { |
|
10 throw obj; |
|
11 } catch (exc) { |
|
12 assertEq(exc, obj); |
|
13 } |