js/src/tests/test262/language/expressions/class/elements/regular-definitions-rs-privatename-identifier-alt.js
raw symbols SCIP| 1 | // This file was procedurally generated from the following sources: |
| 2 | // - src/class-elements/rs-privatename-identifier-alt.case |
| 3 | // - src/class-elements/productions/cls-expr-regular-definitions.template |
| 4 | /*--- |
| 5 | description: Valid PrivateName (regular fields defintion) |
| 6 | esid: prod-FieldDefinition |
| 7 | features: [class-fields-private, class, class-fields-public] |
| 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 | IdentifierName :: |
| 27 | IdentifierStart |
| 28 | IdentifierName IdentifierPart |
| 29 | |
| 30 | IdentifierStart :: |
| 31 | UnicodeIDStart |
| 32 | $ |
| 33 | _ |
| 34 | \ UnicodeEscapeSequence |
| 35 | |
| 36 | IdentifierPart:: |
| 37 | UnicodeIDContinue |
| 38 | $ |
| 39 | \ UnicodeEscapeSequence |
| 40 | <ZWNJ> <ZWJ> |
| 41 | |
| 42 | UnicodeIDStart:: |
| 43 | any Unicode code point with the Unicode property "ID_Start" |
| 44 | |
| 45 | UnicodeIDContinue:: |
| 46 | any Unicode code point with the Unicode property "ID_Continue" |
| 47 | |
| 48 | |
| 49 | NOTE 3 |
| 50 | The sets of code points with Unicode properties "ID_Start" and |
| 51 | "ID_Continue" include, respectively, the code points with Unicode |
| 52 | properties "Other_ID_Start" and "Other_ID_Continue". |
| 53 | |
| 54 | ---*/ |
| 55 | |
| 56 | |
| 57 | var C = class { |
| 58 | #$; #_; #\u{6F}; #℘; #ZW__NJ; #ZW__J |
| 59 | $(value) { |
| 60 | this.#$ = value; |
| 61 | return this.#$; |
| 62 | } |
| 63 | _(value) { |
| 64 | this.#_ = value; |
| 65 | return this.#_; |
| 66 | } |
| 67 | \u{6F}(value) { |
| 68 | this.#\u{6F} = value; |
| 69 | return this.#\u{6F}; |
| 70 | } |
| 71 | ℘(value) { |
| 72 | this.#℘ = value; |
| 73 | return this.#℘; |
| 74 | } |
| 75 | ZW__NJ(value) { |
| 76 | this.#ZW__NJ = value; |
| 77 | return this.#ZW__NJ; |
| 78 | } |
| 79 | ZW__J(value) { |
| 80 | this.#ZW__J = value; |
| 81 | return this.#ZW__J; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | var c = new C(); |
| 86 | |
| 87 | assert.sameValue(c.$(1), 1); |
| 88 | assert.sameValue(c._(1), 1); |
| 89 | assert.sameValue(c.\u{6F}(1), 1); |
| 90 | assert.sameValue(c.℘(1), 1); |
| 91 | assert.sameValue(c.ZW__NJ(1), 1); |
| 92 | assert.sameValue(c.ZW__J(1), 1); |
| 93 | |
| 94 | |
| 95 | reportCompare(0, 0); |