-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolving promises with promises #48
Comments
Thanks for the reference, I will check it out! But I believe it is a separate issue. You write in the other ticket 'Currently, when.js will use whatever you pass to resolve() verbatim as the resolution value'. This is exactly what I expect in the example above, but something goes wrong. If I understand the |
Yep, there is definitely weirdness in the current release. I tried your example in the dev branch, though, and it appears to work correctly. Please give it a try as well and let me know if you see the same. If not, I'll dig in deeper to figure it out before the next release. If it looks good then expect a new release very soon. Thanks! |
Just released 1.4.0 which adds support for resolving a deferred promise with another promise, and fixes the inconsistency here. Feel free to reopen this if you find any problems with it. |
Thank you for the hard work! :) I will check it out soon! |
when.js does have a strange bug when resolving a promise with an other promise. Consider this code:
This (second) variant prints
A resolved into C
. If you switch to the first variant, it printsA resolved into B
.The two variants are supposed to be equivalent aren't they?
The text was updated successfully, but these errors were encountered: