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
"Container is falsy" error with recent versions of babel plugins and reassignment of loop-scoped variable #289
Comments
jedwards1211
changed the title
Container is falsy error on recent versions of babel plugins and unusual for loop variables
Container is falsy error with recent versions of babel plugins and unusual for loop variables
Mar 14, 2024
jedwards1211
changed the title
Container is falsy error with recent versions of babel plugins and unusual for loop variables
Container is falsy error with recent versions of babel plugins and uninitialized for loop variable
Mar 14, 2024
jedwards1211
changed the title
Container is falsy error with recent versions of babel plugins and uninitialized for loop variable
Container is falsy error with recent versions of babel plugins and reassignment of loop-scoped variable
Mar 14, 2024
jedwards1211
changed the title
Container is falsy error with recent versions of babel plugins and reassignment of loop-scoped variable
"Container is falsy" error with recent versions of babel plugins and reassignment of loop-scoped variable
Mar 14, 2024
This was referenced Mar 14, 2024
jedwards1211
added a commit
to jedwards1211/babel-plugin-istanbul
that referenced
this issue
Mar 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't say for sure if the fault lies with the babel core packages or
babel-plugin-istanbul
...@babel/preset-env
withforceAllTransforms: true
by itself doesn't choke on the code below, and neither doesbabel-plugin-istanbul
by itself. But when they're run together, an error gets thrown.Issue repository
https://github.com/jedwards1211/babel-plugin-istanbul-issue
Code
The
parseInt(f)
gets transformed intocov_1c743zp148().b[0][1]++, parseInt(f)
. But for some reason that expression is orphaned by the time@babel/plugin-transform-block-scoping
tries to renamef
to_f
, causing an error to be thrown.Babel config
Package versions
Error message
The text was updated successfully, but these errors were encountered: