Skip to content

Conversation

@sophiebits
Copy link
Collaborator

No description provided.

@sophiebits
Copy link
Collaborator Author

@fisherwebdev Can you review?

@fisherwebdev
Copy link
Contributor

We revised this in #1480. The problem here is that the indexes for promiseIndexes and the indexes for _promises are not 1:1.

@sophiebits
Copy link
Collaborator Author

Before #1480, it looks like waitFor([7, 3]) would return [_promises[0], _promises[1]]. With the current committed code it returns [_promises[3], _promises[7]] and with my change here it should just return [_promises[7], _promises[3]].

@fisherwebdev
Copy link
Contributor

Yep you're right.

@fisherwebdev
Copy link
Contributor

I advised Paul O to accept.

@sophiebits
Copy link
Collaborator Author

I'll take that as approval and just merge it myself. :)

sophiebits added a commit that referenced this pull request May 21, 2014
Make promise selection logic clearer
@sophiebits sophiebits merged commit 49652c8 into facebook:master May 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants