-
Notifications
You must be signed in to change notification settings - Fork 10
finally() not passing result #18
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
Comments
Here's how I'm working around it. Not sure whether there will be problems associated with this hack.
Thanks, by the way, for this library! It's going to save me a LOT of work as I move a large codebase off of angular 1.x promises (with $httpBackend flushing to make tests synchronous) over to ES6 promises. I really wasn't looking forward to modifying thousands of tests to use async/await. |
@epernice resolved & published. Thanks for reporting, especially in so much detail (: |
Thanks for the quick turnaround! The change does pass in my original Runkit, but still failed against my codebase. It looks like there is still an additional difference that crops up when a function is passed into the finally:
|
Ok, please check out 2.0.12 -- I added the test above (empty |
should be fixed in 0042d62 |
btw, thanks for reporting -- as noted in the readme, I rely on user feedback to keep this library valuable (: |
Sorry for not circling back to try this out sooner, but this solved it for me - thanks! |
SynchronousPromise's
finally()
is not returning the resolved value (tried on 2.0.10). Here's a RunKit that compares the behavior against ES6 promises.https://runkit.com/embed/cu88waw08blm
The text was updated successfully, but these errors were encountered: