You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This stripping is not safe because the invocation operator () has higher precedence than new, so the interpreter will try to invoke the returned class like a function first then attempt to new the result of the function invocation.
The text was updated successfully, but these errors were encountered:
Sorry about this! This is fixed in master #1169. We're going to do a release this week. In the meantime, you can add // prettier-ignore in the line before to workaround it.
We recently upgraded from prettier 0.19 to 0.22. Prettier now starts to strip parens in expressions like this:
This stripping is not safe because the invocation operator
()
has higher precedence than new, so the interpreter will try to invoke the returned class like a function first then attempt tonew
the result of the function invocation.The text was updated successfully, but these errors were encountered: