Index: test/mjsunit/es6/debug-promises/reject-uncaught-all.js |
diff --git a/test/mjsunit/es6/debug-promises/reject-uncaught-all.js b/test/mjsunit/es6/debug-promises/reject-uncaught-all.js |
index 0c5ecc5f3a3ead618e3500e3d9539a260b06e725..d4f02cddf76bc71877faf8591470f552c2fe493d 100644 |
--- a/test/mjsunit/es6/debug-promises/reject-uncaught-all.js |
+++ b/test/mjsunit/es6/debug-promises/reject-uncaught-all.js |
@@ -33,8 +33,8 @@ function listener(event, exec_state, event_data, data) { |
assertTrue(event_data.promise() instanceof Promise); |
assertSame(q, event_data.promise()); |
assertTrue(event_data.uncaught()); |
- // All of the frames on the stack are from native Javascript. |
- assertEquals(0, exec_state.frameCount()); |
+ // The frame comes from the Promise.reject call |
+ assertNotNull(/Promise\.reject/.exec(event_data.sourceLineText())); |
} |
} catch (e) { |
%AbortJS(e + "\n" + e.stack); |