Skip to content
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

Promise:finally should reject if chained on a rejected Promise #59

Closed
evaera opened this issue May 28, 2021 · 1 comment
Closed

Promise:finally should reject if chained on a rejected Promise #59

evaera opened this issue May 28, 2021 · 1 comment

Comments

@evaera
Copy link
Owner

evaera commented May 28, 2021

Currently :finally() resets the promise state, but this makes certain patterns hard. In JavaScript, promise.finally does not reset the success state, so we should probably mirror this behavior.

https://discord.com/channels/385151591524597761/402843211707449354/847622059064557638

@evaera evaera added the enhancement New feature or request label May 28, 2021
@evaera
Copy link
Owner Author

evaera commented Jul 7, 2021

image
image

but it's not totally ignored:
image

this contradicts this existing test:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant