tor-browser

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

wrapped-in-sc-rs-private-getter-alt.js (2373B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/class-elements/rs-private-getter-alt.case
      3 // - src/class-elements/productions/cls-decl-wrapped-in-sc.template
      4 /*---
      5 description: Valid PrivateName as private getter (fields definition wrapped in semicolons)
      6 esid: prod-FieldDefinition
      7 features: [class-methods-private, class-fields-private, class, class-fields-public]
      8 flags: [generated]
      9 info: |
     10    ClassElement :
     11      MethodDefinition
     12      ...
     13      ;
     14 
     15    MethodDefinition :
     16      ...
     17      get ClassElementName ( ){ FunctionBody }
     18      ...
     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    NOTE 3
     50    The sets of code points with Unicode properties "ID_Start" and
     51    "ID_Continue" include, respectively, the code points with Unicode
     52    properties "Other_ID_Start" and "Other_ID_Continue".
     53 
     54 ---*/
     55 
     56 
     57 class C {
     58  ;;;;
     59  ;;;;;;#$_; #__; #\u{6F}_; #℘_; #ZW__NJ_; #ZW__J_;
     60  get #$() {
     61    return this.#$_;
     62  }
     63  get #_() {
     64    return this.#__;
     65  }
     66  get #\u{6F}() {
     67    return this.#\u{6F}_;
     68  }
     69  get #℘() {
     70    return this.#℘_;
     71  }
     72  get #ZW__NJ() {
     73    return this.#ZW__NJ_;
     74  }
     75  get #ZW__J() {
     76    return this.#ZW__J_;
     77  }
     78 ;;;;;;;
     79  ;;;;
     80  $(value) {
     81    this.#$_ = value;
     82    return this.#$;
     83  }
     84  _(value) {
     85    this.#__ = value;
     86    return this.#_;
     87  }
     88  \u{6F}(value) {
     89    this.#\u{6F}_ = value;
     90    return this.#\u{6F};
     91  }
     92  (value) {
     93    this.#℘_ = value;
     94    return this.#℘;
     95  }
     96  ZW_‌_NJ(value) {
     97    this.#ZW__NJ_ = value;
     98    return this.#ZW__NJ;
     99  }
    100  ZW_‍_J(value) {
    101    this.#ZW__J_ = value;
    102    return this.#ZW__J;
    103  }
    104 
    105 }
    106 
    107 var c = new C();
    108 
    109 assert.sameValue(c.$(1), 1);
    110 assert.sameValue(c._(1), 1);
    111 assert.sameValue(c.\u{6F}(1), 1);
    112 assert.sameValue(c.(1), 1);
    113 assert.sameValue(c.ZW_‌_NJ(1), 1);
    114 assert.sameValue(c.ZW_‍_J(1), 1);
    115 
    116 reportCompare(0, 0);