Babel turn invalid code to valid code #10412
Labels
lang:javascript
Issues affecting JS
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Found in #10410,
espree
also not handle this code well eslint/espree#470Prettier 2.2.1
Playground link
Input:
Output:
Expected behavior:
Should throw SyntaxError.
The text was updated successfully, but these errors were encountered: