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

Unified Diff: src/promise.js

Issue 473803003: Fix PromiseHasRejectHandler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updated comments Created 6 years, 4 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 | « no previous file | test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/promise.js
diff --git a/src/promise.js b/src/promise.js
index cd96ec19244c166b5f00426a9fde56615bffa13e..9e88aa56ce042a5e90c49adf65d7e832fe30b10b 100644
--- a/src/promise.js
+++ b/src/promise.js
@@ -332,7 +332,7 @@ var lastMicrotaskId = 0;
// the default PromiseIdRejectHandler.
for (var i = 0; i < queue.length; i += 2) {
if (queue[i] != PromiseIdRejectHandler) return true;
- if (PromiseHasRejectHandlerRecursive(queue[i + 1])) return true;
+ if (PromiseHasRejectHandlerRecursive(queue[i + 1].promise)) return true;
}
return false;
}
« no previous file with comments | « no previous file | test/mjsunit/es6/debug-promises/reject-caught-by-default-reject-handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698