-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Removing necessary member expression parenthesis for new #2033
Copy link
Copy link
Closed
Copy link
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Metadata
Metadata
Assignees
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Prettier 1.4.2 is doing this:
function createObj() { return { prop: class {} }; } - new (createObj()).prop(); + new createObj().prop();This changes the behavior of the code from:
To:
[Demo]