tor-browser

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

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


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