Skip to content

Missing parentheses for ((async) of []); #10777

@fisker

Description

@fisker

This is valid even in main branch, related babel pr

Prettier 2.2.1
Playground link

--parser babel

Input:

for ((async) of []);

Output:

for (async of []);

Second Output:

SyntaxError: Unexpected token, expected "=>" (1:15)
> 1 | for (async of []);
    |               ^
  2 | 

Expected behavior:

Metadata

Metadata

Assignees

Labels

lang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions