tor-browser

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

regular-definitions-rs-static-async-generator-method-privatename-identifier-alt.js (2933B)


      1 // |reftest| async
      2 // This file was procedurally generated from the following sources:
      3 // - src/class-elements/rs-static-async-generator-method-privatename-identifier-alt.case
      4 // - src/class-elements/productions/cls-expr-regular-definitions.template
      5 /*---
      6 description: Valid Static AsyncGeneratorMethod PrivateName (regular fields defintion)
      7 esid: prod-FieldDefinition
      8 features: [class-static-methods-private, class, class-fields-public]
      9 flags: [generated, async]
     10 info: |
     11    ClassElement :
     12      MethodDefinition
     13      static MethodDefinition
     14      FieldDefinition ;
     15      static FieldDefinition ;
     16      ;
     17 
     18    MethodDefinition :
     19      AsyncGeneratorMethod
     20 
     21    AsyncGeneratorMethod :
     22      async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
     23 
     24    ClassElementName :
     25      PropertyName
     26      PrivateName
     27 
     28    PrivateName ::
     29      # IdentifierName
     30 
     31    IdentifierName ::
     32      IdentifierStart
     33      IdentifierName IdentifierPart
     34 
     35    IdentifierStart ::
     36      UnicodeIDStart
     37      $
     38      _
     39      \ UnicodeEscapeSequence
     40 
     41    IdentifierPart::
     42      UnicodeIDContinue
     43      $
     44      \ UnicodeEscapeSequence
     45      <ZWNJ> <ZWJ>
     46 
     47    UnicodeIDStart::
     48      any Unicode code point with the Unicode property "ID_Start"
     49 
     50    UnicodeIDContinue::
     51      any Unicode code point with the Unicode property "ID_Continue"
     52 
     53 
     54    NOTE 3
     55    The sets of code points with Unicode properties "ID_Start" and
     56    "ID_Continue" include, respectively, the code points with Unicode
     57    properties "Other_ID_Start" and "Other_ID_Continue".
     58 
     59 ---*/
     60 
     61 
     62 var C = class {
     63  static async * #$(value) {
     64    yield * await value;
     65  }
     66  static async * #_(value) {
     67    yield * await value;
     68  }
     69  static async * #o(value) {
     70    yield * await value;
     71  }
     72  static async * #℘(value) {
     73    yield * await value;
     74  }
     75  static async * #ZW__NJ(value) {
     76    yield * await value;
     77  }
     78  static async * #ZW__J(value) {
     79    yield * await value;
     80  }
     81  static get $() {
     82   return this.#$;
     83  }
     84  static get _() {
     85   return this.#_;
     86  }
     87  static get o() {
     88   return this.#o;
     89  }
     90  static get () { // DO NOT CHANGE THE NAME OF THIS FIELD
     91   return this.#℘;
     92  }
     93  static get ZW_‌_NJ() { // DO NOT CHANGE THE NAME OF THIS FIELD
     94   return this.#ZW__NJ;
     95  }
     96  static get ZW_‍_J() { // DO NOT CHANGE THE NAME OF THIS FIELD
     97   return this.#ZW__J;
     98  }
     99 
    100 }
    101 
    102 var c = new C();
    103 
    104 Promise.all([
    105  C.$([1]).next(),
    106  C._([1]).next(),
    107  C.o([1]).next(),
    108  C.([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
    109  C.ZW_‌_NJ([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
    110  C.ZW_‍_J([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
    111 ]).then(results => {
    112 
    113  assert.sameValue(results[0].value, 1);
    114  assert.sameValue(results[1].value, 1);
    115  assert.sameValue(results[2].value, 1);
    116  assert.sameValue(results[3].value, 1);
    117  assert.sameValue(results[4].value, 1);
    118  assert.sameValue(results[5].value, 1);
    119 
    120 }).then($DONE, $DONE);