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
{{ message }}
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
new new class {}()?.constructor?.(); is equivalent to new FOO?.constructor?.(), which should be a syntax error. Indeed, we don’t support “optional new”, my main reason being that the expected complication of the grammar largely outweighs the (lack of) use cases. See #22.
new new class {}()?.constructor?.();
(equivalent tonew new class {}().constructor();
)When reading the proposed syntax grammar, this seems correct, but it's one of the few errors I found when parsing with Babel.
Is that an error from Babel or the actual code?
The text was updated successfully, but these errors were encountered: