Chromium Code Reviews| Index: test/mjsunit/es6/debug-promises-throw-in-reject.js |
| diff --git a/test/mjsunit/es6/debug-promises-throw-in-reject.js b/test/mjsunit/es6/debug-promises-throw-in-reject.js |
| index 6ae064dcd291d9bdd22d3eedf8ef1b417564ac65..a7bc6061ecfef79a26a2ea6076317db37f8ca055 100644 |
| --- a/test/mjsunit/es6/debug-promises-throw-in-reject.js |
| +++ b/test/mjsunit/es6/debug-promises-throw-in-reject.js |
| @@ -6,7 +6,7 @@ |
| // Test debug events when an exception is thrown inside a Promise, which is |
| // caught by a custom promise, which throws a new exception in its reject |
| -// handler. We expect a PendingExceptionInPromise event to be triggered. |
| +// handler. We expect an Exception debug event with a promise to be triggered. |
| Debug = debug.Debug; |
| @@ -39,12 +39,11 @@ var q = p.chain( |
| function listener(event, exec_state, event_data, data) { |
| try { |
| - if (event == Debug.DebugEvent.PendingExceptionInPromise) { |
| + if (event == Debug.DebugEvent.Exception) { |
| assertEquals(["resolve", "construct", "end main", |
| "throw caught", "throw reject"], log); |
| - assertEquals("caught", event_data.exception().message); |
| - } else if (event == Debug.DebugEvent.Exception) { |
| - assertUnreachable(); |
| + assertEquals("reject", event_data.exception().message); |
| + assertEquals(q, event_data.promise()); |
|
aandrey
2014/04/30 13:01:07
assertTrue(exec_state.frame(0).sourceLineText().in
|
| } |
| } catch (e) { |
| // Signal a failure with exit code 1. This is necessary since the |