tor-browser

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

static-as-valid-static-field-assigned.js (664B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/class-elements/static-as-valid-static-field-assigned.case
      3 // - src/class-elements/default/cls-decl.template
      4 /*---
      5 description: static is a valid name of a static field (field definitions in a class declaration)
      6 esid: prod-FieldDefinition
      7 features: [class-static-fields-public, class]
      8 flags: [generated]
      9 includes: [propertyHelper.js]
     10 info: |
     11    ClassElement:
     12      ...
     13      static FieldDefinition ;
     14 
     15 ---*/
     16 
     17 
     18 class C {
     19  static static = "test262";
     20 }
     21 
     22 verifyProperty(C, "static", {
     23  value: "test262",
     24  enumerable: true,
     25  writable: true,
     26  configurable: true
     27 });
     28 
     29 
     30 reportCompare(0, 0);