grammar-privatenames-multi-line.js (678B)
1 // This file was procedurally generated from the following sources: 2 // - src/class-elements/grammar-privatenames-multi-line.case 3 // - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template 4 /*--- 5 description: SyntaxError (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 ---*/ 27 28 29 var C = class { 30 #x 31 #y 32 }; 33 34 reportCompare(0, 0);