tc39 / proposal-class-fields

Orthogonally-informed combination of public and private fields proposals
https://arai-a.github.io/ecma262-compare/?pr=1668
1.72k stars 113 forks source link

Normative: Define private names at the beginning of the class #269

Closed littledan closed 5 years ago

littledan commented 5 years ago

Private names are logically defined during the whole class execution, not only after the definition is reached. This patch properly hoists the private name definition, to avoid an unintentional and confusing TDZ condition.

Closes #263

caitp commented 5 years ago

lgtm

syg commented 5 years ago

We reached consensus on this PR in the October 2019 TC39.