tor-browser

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

wrapped-in-sc-rs-static-async-method-privatename-identifier.js (2761B)


      1 // |reftest| async
      2 // This file was procedurally generated from the following sources:
      3 // - src/class-elements/rs-static-async-method-privatename-identifier.case
      4 // - src/class-elements/productions/cls-expr-wrapped-in-sc.template
      5 /*---
      6 description: Valid Static AsyncMethod PrivateName (fields definition wrapped in semicolons)
      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      AsyncMethod
     20 
     21    AsyncMethod :
     22      async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
     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  ;;;;
     64  ;;;;;;static async #$(value) {
     65    return await value;
     66  }
     67  static async #_(value) {
     68    return await value;
     69  }
     70  static async #\u{6F}(value) {
     71    return await value;
     72  }
     73  static async #\u2118(value) {
     74    return await value;
     75  }
     76  static async #ZW_\u200C_NJ(value) {
     77    return await value;
     78  }
     79  static async #ZW_\u200D_J(value) {
     80    return await value;
     81  };;;;;;;
     82  ;;;;
     83  static async $(value) {
     84    return await this.#$(value);
     85  }
     86  static async _(value) {
     87    return await this.#_(value);
     88  }
     89  static async \u{6F}(value) {
     90    return await this.#\u{6F}(value);
     91  }
     92  static async \u2118(value) {
     93    return await this.#\u2118(value);
     94  }
     95  static async ZW_\u200C_NJ(value) {
     96    return await this.#ZW_\u200C_NJ(value);
     97  }
     98  static async ZW_\u200D_J(value) {
     99    return await this.#ZW_\u200D_J(value);
    100  }
    101 
    102 }
    103 
    104 var c = new C();
    105 
    106 Promise.all([
    107  C.$(1),
    108  C._(1),
    109  C.\u{6F}(1),
    110  C.\u2118(1),
    111  C.ZW_\u200C_NJ(1),
    112  C.ZW_\u200D_J(1),
    113 ]).then(results => {
    114 
    115  assert.sameValue(results[0], 1);
    116  assert.sameValue(results[1], 1);
    117  assert.sameValue(results[2], 1);
    118  assert.sameValue(results[3], 1);
    119  assert.sameValue(results[4], 1);
    120  assert.sameValue(results[5], 1);
    121 
    122 }).then($DONE, $DONE);