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 }}
Repository navigation
Should we allow super [ Expression ] in PatternMatchingMemberExpression? #331
As we can see, the following examples are valid PatternMatchingMemberExpression:
this[expr]
super.prop[expr]
import.meta[expr]
However, this production does not cover super [ Expression[+In, ?Yield, ?Await] ], should we also include it?
If yes we can replace super . IdentifierName by the SuperProperty production, which already covers super[expr].
Activity
ljharb commentedon Jul 6, 2024
My expectation is that we’d match decorators here.
Jack-Works commentedon Jul 7, 2024
looks like I forgot that production
Jack-Works commentedon Jul 7, 2024
DecoratorMemberExpression is too limited. It doesn't include
thisMetaPropertyorsuper.*, it also includes(Expression)we don't want.