Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: test/mjsunit/es6/debug-promises-new-event.js

Issue 393283007: Introduce more debug events for promises. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Check result length in the test as well Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/promise.js ('k') | test/mjsunit/es6/debug-promises-update-parent-event.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/debug-promises-new-event.js
diff --git a/test/mjsunit/es6/debug-promises-new-event.js b/test/mjsunit/es6/debug-promises-new-event.js
index 06a977431eed56f7b6f342854e4dd95319900208..b08077c5b884d7939ac8044b65b3b72c1d388b13 100644
--- a/test/mjsunit/es6/debug-promises-new-event.js
+++ b/test/mjsunit/es6/debug-promises-new-event.js
@@ -10,7 +10,7 @@ var exception = null;
var new_promise;
function listener(event, exec_state, event_data, data) {
- if (event != Debug.DebugEvent.PromiseEvent) return;
+ if (!(event_data instanceof debug.NewPromiseEvent)) return;
try {
assertTrue(event_data.resolver().isFunction());
assertEquals(resolver, event_data.resolver().value());
« no previous file with comments | « src/promise.js ('k') | test/mjsunit/es6/debug-promises-update-parent-event.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698