tor-browser

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

regular-definitions-rs-static-async-method-privatename-identifier.js (2725B)


      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-regular-definitions.template
      5 /*---
      6 description: Valid Static AsyncMethod 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      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  static async #$(value) {
     64    return await value;
     65  }
     66  static async #_(value) {
     67    return await value;
     68  }
     69  static async #\u{6F}(value) {
     70    return await value;
     71  }
     72  static async #\u2118(value) {
     73    return await value;
     74  }
     75  static async #ZW_\u200C_NJ(value) {
     76    return await value;
     77  }
     78  static async #ZW_\u200D_J(value) {
     79    return await value;
     80  }
     81  static async $(value) {
     82    return await this.#$(value);
     83  }
     84  static async _(value) {
     85    return await this.#_(value);
     86  }
     87  static async \u{6F}(value) {
     88    return await this.#\u{6F}(value);
     89  }
     90  static async \u2118(value) {
     91    return await this.#\u2118(value);
     92  }
     93  static async ZW_\u200C_NJ(value) {
     94    return await this.#ZW_\u200C_NJ(value);
     95  }
     96  static async ZW_\u200D_J(value) {
     97    return await this.#ZW_\u200D_J(value);
     98  }
     99 
    100 }
    101 
    102 var c = new C();
    103 
    104 Promise.all([
    105  C.$(1),
    106  C._(1),
    107  C.\u{6F}(1),
    108  C.\u2118(1),
    109  C.ZW_\u200C_NJ(1),
    110  C.ZW_\u200D_J(1),
    111 ]).then(results => {
    112 
    113  assert.sameValue(results[0], 1);
    114  assert.sameValue(results[1], 1);
    115  assert.sameValue(results[2], 1);
    116  assert.sameValue(results[3], 1);
    117  assert.sameValue(results[4], 1);
    118  assert.sameValue(results[5], 1);
    119 
    120 }).then($DONE, $DONE);