| 1 |
// This file was procedurally generated from the following sources: |
| 2 |
// - src/class-elements/grammar-privatename-classelementname-initializer.case |
| 3 |
// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template |
| 4 |
/*--- |
| 5 |
description: Valid PrivateName = Initializer Syntax (class expression) |
| 6 |
esid: prod-ClassElement |
| 7 |
features: [class-fields-private, class] |
| 8 |
flags: [generated] |
| 9 |
info: | |
| 10 |
ClassElement : |
| 11 |
MethodDefinition |
| 12 |
static MethodDefinition |
| 13 |
FieldDefinition ; |
| 14 |
; |
| 15 |
|
| 16 |
FieldDefinition : |
| 17 |
ClassElementName Initializer _opt |
| 18 |
|
| 19 |
ClassElementName : |
| 20 |
PropertyName |
| 21 |
PrivateName |
| 22 |
|
| 23 |
PrivateName :: |
| 24 |
# IdentifierName |
| 25 |
|
| 26 |
Initializer : |
| 27 |
= AssignmentExpression |
| 28 |
|
| 29 |
IdentifierName :: |
| 30 |
IdentifierStart |
| 31 |
IdentifierName IdentifierPart |
| 32 |
|
| 33 |
IdentifierStart :: |
| 34 |
UnicodeIDStart |
| 35 |
$ |
| 36 |
_ |
| 37 |
\ UnicodeEscapeSequence |
| 38 |
|
| 39 |
IdentifierPart:: |
| 40 |
UnicodeIDContinue |
| 41 |
$ |
| 42 |
\ UnicodeEscapeSequence |
| 43 |
<ZWNJ> <ZWJ> |
| 44 |
|
| 45 |
UnicodeIDStart:: |
| 46 |
any Unicode code point with the Unicode property "ID_Start" |
| 47 |
|
| 48 |
UnicodeIDContinue:: |
| 49 |
any Unicode code point with the Unicode property "ID_Continue" |
| 50 |
|
| 51 |
|
| 52 |
NOTE 3 |
| 53 |
The sets of code points with Unicode properties "ID_Start" and |
| 54 |
"ID_Continue" include, respectively, the code points with Unicode |
| 55 |
properties "Other_ID_Start" and "Other_ID_Continue". |
| 56 |
|
| 57 |
---*/ |
| 58 |
|
| 59 |
|
| 60 |
var C = class { |
| 61 |
#$ = 1; |
| 62 |
#_ = 2; |
| 63 |
#\u{6F} = 3; |
| 64 |
#\u2118 = 4; |
| 65 |
#ZW_\u200C_NJ = 5; |
| 66 |
#ZW_\u200D_J = 6; |
| 67 |
}; |
| 68 |
|
| 69 |
reportCompare(0, 0); |