tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

static-as-valid-instance-field.js (748B)


      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-decl.template
      4 /*---
      5 description: static is a valid name of an instance field (field definitions in a class declaration)
      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 class C {
     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);