tc39 / proposal-static-class-features

The static parts of new class features, in a separate proposal
https://arai-a.github.io/ecma262-compare/?pr=1668
127 stars 27 forks source link

Specification text for this proposal and class fields proposal is out of sync #67

Closed rbuckton closed 3 years ago

rbuckton commented 3 years ago

Specifically, in ClassDefinitionEvaluation, there are lines not marked with <ins> that do not appear in the class fields spec.

In this proposal:

image

In the class fields proposal:

image

This line does not appear in the class fields proposal, so I'm not sure which one is out of sync:

If PrivateBoundIdentifiers of ClassBody contains a Private Name P such that P's [[Kind]] field is either "method" or "accessor" [...]

rbuckton commented 3 years ago

Also, @ljharb pointed out to me in the class static block proposal that fields like [[Kind]] should probably use spec enums (i.e., ~method~, ~accessor~) rather than strings (i.e., "method", "accessor").

littledan commented 3 years ago

Please see https://arai-a.github.io/ecma262-compare/?pr=1668 for the authoritative spec text.