static-as-valid-instance-field.js (753B)
1 // This file was procedurally generated from the following sources: 2 // - src/class-elements/static-as-valid-instance-field.case 3 // - src/class-elements/default/cls-expr.template 4 /*--- 5 description: static is a valid name of an instance field (field definitions in a class expression) 6 esid: prod-FieldDefinition 7 features: [class-fields-public, class] 8 flags: [generated] 9 includes: [propertyHelper.js] 10 info: | 11 ClassElement: 12 ... 13 FieldDefinition ; 14 15 FieldDefinition: 16 ClassElementName Initializer_opt 17 18 ClassElementName: 19 PropertyName 20 21 ---*/ 22 23 24 var C = class { 25 static; 26 } 27 28 let c = new C(); 29 30 verifyProperty(c, "static", { 31 value: undefined, 32 enumerable: true, 33 writable: true, 34 configurable: true 35 }); 36 37 38 reportCompare(0, 0);