Index: test/mjsunit/es6/debug-promises/reject-uncaught-uncaught.js |
diff --git a/test/mjsunit/es6/debug-promises/reject-uncaught-uncaught.js b/test/mjsunit/es6/debug-promises/reject-uncaught-uncaught.js |
index e5e560b3db9e38370ed9321add85b9c35a5c350b..0a5279fbed2ba46ecc2dcf18747bcdb7ced26295 100644 |
--- a/test/mjsunit/es6/debug-promises/reject-uncaught-uncaught.js |
+++ b/test/mjsunit/es6/debug-promises/reject-uncaught-uncaught.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 JavaScript frame is from the Promise rejection |
+ assertTrue(/Promise\.reject/.test(event_data.sourceLineText())); |
} |
} catch (e) { |
%AbortJS(e + "\n" + e.stack); |