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

Missing static semantics for ClassElementKind for fields #69

Closed rbuckton closed 3 years ago

rbuckton commented 3 years ago

Per the spec text at https://arai-a.github.io/ecma262-compare/?pr=1668, there is no implementation of the ClassElementKind operation for these productions:

ClassElement : FieldDefinition `;`
ClassElement : `static` FieldDefinition `;`

Without a definition that returns the spec enum NonConstructorMethod, fields will not be included in the result returned from NonConstructorMethodDefinitions during ClassDefinitionEvaluation.

rbuckton commented 3 years ago

I've moved this to a comment on the PR.