regular-definitions-rs-static-method-privatename-identifier-alt.js (2525B)
1 // This file was procedurally generated from the following sources: 2 // - src/class-elements/rs-static-method-privatename-identifier-alt.case 3 // - src/class-elements/productions/cls-expr-regular-definitions.template 4 /*--- 5 description: Valid Static Method PrivateName (regular fields defintion) 6 esid: prod-FieldDefinition 7 features: [class-static-methods-private, class, class-fields-public] 8 flags: [generated] 9 info: | 10 ClassElement : 11 MethodDefinition 12 static MethodDefinition 13 FieldDefinition ; 14 static FieldDefinition ; 15 ; 16 17 MethodDefinition : 18 ClassElementName ( UniqueFormalParameters ){ FunctionBody } 19 20 ClassElementName : 21 PropertyName 22 PrivateName 23 24 PrivateName :: 25 # IdentifierName 26 27 IdentifierName :: 28 IdentifierStart 29 IdentifierName IdentifierPart 30 31 IdentifierStart :: 32 UnicodeIDStart 33 $ 34 _ 35 \ UnicodeEscapeSequence 36 37 IdentifierPart:: 38 UnicodeIDContinue 39 $ 40 \ UnicodeEscapeSequence 41 <ZWNJ> <ZWJ> 42 43 UnicodeIDStart:: 44 any Unicode code point with the Unicode property "ID_Start" 45 46 UnicodeIDContinue:: 47 any Unicode code point with the Unicode property "ID_Continue" 48 49 50 NOTE 3 51 The sets of code points with Unicode properties "ID_Start" and 52 "ID_Continue" include, respectively, the code points with Unicode 53 properties "Other_ID_Start" and "Other_ID_Continue". 54 55 ---*/ 56 57 58 var C = class { 59 static #$(value) { 60 return value; 61 } 62 static #_(value) { 63 return value; 64 } 65 static #o(value) { 66 return value; 67 } 68 static #℘(value) { 69 return value; 70 } 71 static #ZW__NJ(value) { 72 return value; 73 } 74 static #ZW__J(value) { 75 return value; 76 } 77 static $(value) { 78 return this.#$(value); 79 } 80 static _(value) { 81 return this.#_(value); 82 } 83 static o(value) { 84 return this.#o(value); 85 } 86 static ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD 87 return this.#℘(value); 88 } 89 static ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD 90 return this.#ZW__NJ(value); 91 } 92 static ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD 93 return this.#ZW__J(value); 94 } 95 96 } 97 98 var c = new C(); 99 100 assert.sameValue(C.$(1), 1); 101 assert.sameValue(C._(1), 1); 102 assert.sameValue(C.o(1), 1); 103 assert.sameValue(C.℘(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD 104 assert.sameValue(C.ZW__NJ(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD 105 assert.sameValue(C.ZW__J(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD 106 107 108 reportCompare(0, 0);