Global Metrics

path: .metrics.mi.mi_original
old: 63.78425743534362
new: 63.32439020109192

path: .metrics.mi.mi_visual_studio
old: 37.30073534230621
new: 37.03180713514147

path: .metrics.mi.mi_sei
old: 63.47910051660239
new: 62.81565233828013

path: .metrics.loc.lloc
old: 35.0
new: 39.0

path: .metrics.nexits.sum
old: 6.0
new: 5.0

path: .metrics.halstead.N2
old: 56.0
new: 61.0

path: .metrics.halstead.purity_ratio
old: 0.5045020146748802
new: 0.6039294446000505

path: .metrics.halstead.vocabulary
old: 19.0
new: 22.0

path: .metrics.halstead.bugs
old: 0.1612515037188222
new: 0.1541864672868779

path: .metrics.halstead.n2
old: 11.0
new: 14.0

path: .metrics.halstead.effort
old: 10639.899895490697
new: 9948.354879520004

path: .metrics.halstead.length
old: 123.0
new: 128.0

path: .metrics.halstead.time
old: 591.1055497494831
new: 552.6863821955558

path: .metrics.halstead.volume
old: 522.495084153561
new: 570.807247185574

path: .metrics.halstead.difficulty
old: 20.363636363636363
new: 17.428571428571427

path: .metrics.halstead.estimated_program_length
old: 62.05374780501027
new: 77.30296890880646

path: .metrics.halstead.level
old: 0.049107142857142856
new: 0.05737704918032788

Code

// |reftest| shell-option(--enable-private-fields) skip-if(!xulRuntime.shell) -- requires shell-options
// This file was procedurally generated from the following sources:
// - src/class-elements/rs-static-privatename-identifier-alt-by-classname.case
// - src/class-elements/productions/cls-decl-wrapped-in-sc.template
/*---
description: Valid Static PrivateName (fields definition wrapped in semicolons)
esid: prod-FieldDefinition
features: [class-static-fields-private, class, class-fields-public]
flags: [generated]
info: |
    ClassElement :
      MethodDefinition
      static MethodDefinition
      FieldDefinition ;
      static FieldDefinition ;
      ;

    FieldDefinition :
      ClassElementName Initializer _opt

    ClassElementName :
      PropertyName
      PrivateName

    PrivateName ::
      # IdentifierName

    IdentifierName ::
      IdentifierStart
      IdentifierName IdentifierPart

    IdentifierStart ::
      UnicodeIDStart
      $
      _
      \ UnicodeEscapeSequence

    IdentifierPart::
      UnicodeIDContinue
      $
      \ UnicodeEscapeSequence
       

    UnicodeIDStart::
      any Unicode code point with the Unicode property "ID_Start"

    UnicodeIDContinue::
      any Unicode code point with the Unicode property "ID_Continue"


    NOTE 3
    The sets of code points with Unicode properties "ID_Start" and
    "ID_Continue" include, respectively, the code points with Unicode
    properties "Other_ID_Start" and "Other_ID_Continue".

---*/


class C {
  ;;;;
  ;;;;;;static #$; static #_; static #\u{6F}; static #℘; static #ZW_‌_NJ; static #ZW_‍_J;;;;;;;
  ;;;;
  static $(value) {
    C.#$ = value;
    return C.#$;
  }
  static _(value) {
    C.#_ = value;
    return C.#_;
  }
  static o(value) {
    C.#\u{6F} = value;
    return C.#\u{6F};
  }
  static ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
    C.#℘ = value;
    return C.#℘;
  }
  static ZW_‌_NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
    C.#ZW_‌_NJ = value;
    return C.#ZW_‌_NJ;
  }
  static ZW_‍_J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
    C.#ZW_‍_J = value;
    return C.#ZW_‍_J;
  }
}

var c = new C();

assert.sameValue(C.$(1), 1);
assert.sameValue(C._(1), 1);
assert.sameValue(C.o(1), 1);
assert.sameValue(C.℘(1), 1);      // DO NOT CHANGE THE NAME OF THIS FIELD
assert.sameValue(C.ZW_‌_NJ(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
assert.sameValue(C.ZW_‍_J(1), 1);  // DO NOT CHANGE THE NAME OF THIS FIELD


reportCompare(0, 0);