update decorator member expr private id test cases

This commit is contained in:
Huáng Jùnliàng 2023-03-23 16:52:28 -04:00 committed by Philip Chimento
parent 6da1d4c82c
commit a3880a460a
4 changed files with 14 additions and 12 deletions

View File

@ -10,8 +10,8 @@ info: |
DecoratorMemberExpression[Yield, Await] :
IdentifierReference[?Yield, ?Await]
PrivateIdentifier
DecoratorMemberExpression[?Yield, ?Await] . IdentifierName
DecoratorMemberExpression[?Yield, ?Await] . PrivateIdentifier
IdentifierReference[Yield, Await] :
[~Yield] yield

View File

@ -10,8 +10,8 @@ info: |
DecoratorMemberExpression[Yield, Await] :
IdentifierReference[?Yield, ?Await]
PrivateIdentifier
DecoratorMemberExpression[?Yield, ?Await] . IdentifierName
DecoratorMemberExpression[?Yield, ?Await] . PrivateIdentifier
IdentifierReference[Yield, Await] :
Identifier

View File

@ -7,8 +7,8 @@ desc: >
info: |
DecoratorMemberExpression[Yield, Await] :
IdentifierReference[?Yield, ?Await]
PrivateIdentifier
DecoratorMemberExpression[?Yield, ?Await] . IdentifierName
DecoratorMemberExpression[?Yield, ?Await] . PrivateIdentifier
template: syntax/valid
---*/

View File

@ -6,7 +6,9 @@ desc: >
Decorator @ DecoratorMemberExpression
info: |
DecoratorMemberExpression[Yield, Await] :
PrivateIdentifier
IdentifierReference[?Yield, ?Await]
DecoratorMemberExpression[?Yield, ?Await] . IdentifierName
DecoratorMemberExpression[?Yield, ?Await] . PrivateIdentifier
PrivateIdentifier ::
# IdentifierName
@ -25,11 +27,11 @@ static #yield() {}
static #await() {}
//- decorators
@#$
@#_
@#\u{6F}
@#\u2118
@#ZW_\u200C_NJ
@#ZW_\u200D_J
@#yield
@#await
@C.#$
@C.#_
@C.#\u{6F}
@C.#\u2118
@C.#ZW_\u200C_NJ
@C.#ZW_\u200D_J
@C.#yield
@C.#await