tor-browser

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

wrapped-in-sc-rs-static-generator-method-privatename-identifier-alt.js (2567B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/class-elements/rs-static-generator-method-privatename-identifier-alt.case
      3 // - src/class-elements/productions/cls-expr-wrapped-in-sc.template
      4 /*---
      5 description: Valid Static GeneratorMethod PrivateName (fields definition wrapped in semicolons)
      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      GeneratorMethod
     19 
     20    GeneratorMethod :
     21      * ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
     22 
     23    ClassElementName :
     24      PropertyName
     25      PrivateName
     26 
     27    PrivateName ::
     28      # IdentifierName
     29 
     30    IdentifierName ::
     31      IdentifierStart
     32      IdentifierName IdentifierPart
     33 
     34    IdentifierStart ::
     35      UnicodeIDStart
     36      $
     37      _
     38      \ UnicodeEscapeSequence
     39 
     40    IdentifierPart::
     41      UnicodeIDContinue
     42      $
     43      \ UnicodeEscapeSequence
     44      <ZWNJ> <ZWJ>
     45 
     46    UnicodeIDStart::
     47      any Unicode code point with the Unicode property "ID_Start"
     48 
     49    UnicodeIDContinue::
     50      any Unicode code point with the Unicode property "ID_Continue"
     51 
     52 
     53    NOTE 3
     54    The sets of code points with Unicode properties "ID_Start" and
     55    "ID_Continue" include, respectively, the code points with Unicode
     56    properties "Other_ID_Start" and "Other_ID_Continue".
     57 
     58 ---*/
     59 
     60 
     61 var C = class {
     62  ;;;;
     63  ;;;;;;static * #$(value) {
     64    yield * value;
     65  }
     66  static * #_(value) {
     67    yield * value;
     68  }
     69  static * #o(value) {
     70    yield * value;
     71  }
     72  static * #℘(value) {
     73    yield * value;
     74  }
     75  static * #ZW__NJ(value) {
     76    yield * value;
     77  }
     78  static * #ZW__J(value) {
     79    yield * value;
     80  };;;;;;;
     81  ;;;;
     82  static get $() {
     83    return this.#$;
     84  }
     85  static get _() {
     86    return this.#_;
     87  }
     88  static get o() {
     89    return this.#o;
     90  }
     91  static get () { // DO NOT CHANGE THE NAME OF THIS FIELD
     92    return this.#℘;
     93  }
     94  static get ZW_‌_NJ() { // DO NOT CHANGE THE NAME OF THIS FIELD
     95    return this.#ZW__NJ;
     96  }
     97  static get ZW_‍_J() { // DO NOT CHANGE THE NAME OF THIS FIELD
     98    return this.#ZW__J;
     99  }
    100 
    101 }
    102 
    103 var c = new C();
    104 
    105 assert.sameValue(C.$([1]).next().value, 1);
    106 assert.sameValue(C._([1]).next().value, 1);
    107 assert.sameValue(C.o([1]).next().value, 1);
    108 assert.sameValue(C.([1]).next().value, 1);
    109 assert.sameValue(C.ZW_‌_NJ([1]).next().value, 1);
    110 assert.sameValue(C.ZW_‍_J([1]).next().value, 1);
    111 
    112 reportCompare(0, 0);