Missing parentheses for ((let) of []);
#10828
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
Prettier 2.2.1
Playground link
Input:
Output:
Second Output:
The parens are also needed in
for ((let) of []);
andfor ((let.foo.bar) of []);
.See https://tc39.es/ecma262/#sec-for-in-and-for-of-statements
Originally posted by @thorn0 in #10777 (comment)
The text was updated successfully, but these errors were encountered: