[Bug]: forward reference (use before definition) in switch statement #15151
Labels
i: enhancement
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
馃捇
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
In the input code,
ReferenceError
is expected but the transpiled code terminates without any error.$ node output.js # no error
Environment
Reproductions on Babel's own REPL
Possible solution
It might be possible to solve this issue by changing
var x
intovar _x
.Additional context
No response
The text was updated successfully, but these errors were encountered: