Index: test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js |
diff --git a/test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js b/test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js |
index b7c5861c1f0a5672a396cc37ee55516e5e306a8f..cd13dbf9d2c5a720a3edc5219d5afa83209890ab 100644 |
--- a/test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js |
+++ b/test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js |
@@ -44,8 +44,8 @@ function listener(event, exec_state, event_data, data) { |
assertTrue(event_data.uncaught()); |
assertTrue(event_data.promise() instanceof Promise); |
if (expected_events == 1) { |
- // p1 is rejected, uncaught except for its default reject handler. |
- assertEquals(0, exec_state.frameCount()); |
+ // p1 is rejected, uncaught, with the error from the Promise.reject line |
+ assertNotNull(event_data.sourceLineText().match("Promise.reject")); |
assertSame(p1, event_data.promise()); |
} else { |
// p2 is rejected by p1's default reject handler. |