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
Over-aggressive pruning inside loops with try/catch #2894
Comments
Thanks, I will look into this, this seems strange indeed. Weirdly enough, the issue seems to arise from the variable |
I ran into this as well building this small repo. |
Thanks, I already tracked it down, fix upcoming. |
Fix at #2898 |
How Do We Reproduce?
Using the following code as input for rollup, no plugins and all the default options:
(this is a reduced version of the mixin util from Slate.js after transpilation that can be found in
lib/slate.es.js
of slate on npm)Expected Behavior
Output should be pretty much identical to input
Actual Behavior
The second loop gets reduced down to:
_iterator3
is no longer defined and the loop body is also missing.This seems to be about as minimal as I can make the test case - removing the try/catch or anything inside either of the loops causes this behaviour to go away.
REPL link
This seems to have been introduced in 1.14.0, since with 1.13.1 it's perfectly fine (repl)
The text was updated successfully, but these errors were encountered: