-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[bug] yield* with .return() on parent, missed child's finally block execution #275
Comments
This bug inspired me to spend some quality time with the 14.4.13 Generator Function Definitions: Runtime Semantics: Evaluation section of the specification, specifically the part labeled YieldExpression : Although this bug could have been fixed without significantly rewriting the code that handles Thanks for reporting this! |
Wow, thanks! Just great work - although I was happy to help with the code I see I wouldnt have a chance to done this right, complex stuff in the commit fixing this! What's need to be done so this fix is included in the next versions of babel? |
It's been a while since I thought about this code, so it wasn't easy for me either! The For what it's worth, I did run the Babel test suite with this version installed, and saw no problems. |
Yeah, u are right - new installs are fine! :) Thanks once again. |
The following code does not transform as expected:
If we run this code in Chrome's console we'll get the following logs:
but with regenerator the outcome is only this
I would be happy to help with fixing this, but at least pointing some starting points in the codebase would be great, as it is not the easiest project to grasp at once
The text was updated successfully, but these errors were encountered: