Reviewers: aandrey,
Description:
Fix PromiseHasRejectHandler.
The odd-numbered items in the queue are deferred objects, not promises.
[email protected]
Please review this at https://codereview.chromium.org/473803003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/promise.js
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;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.