Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[javascript] Support static class fields #3451

Closed
ris58h opened this issue May 20, 2023 · 0 comments
Closed

[javascript] Support static class fields #3451

ris58h opened this issue May 20, 2023 · 0 comments

Comments

@ris58h
Copy link
Contributor

ris58h commented May 20, 2023

Currently javascript grammar doesn't support static fields in classes.

Input:

class S {
  static s
}

Errors:

line 3:0 no viable alternative at input 'class S {\n  static s\n}'
line 1:8 no viable alternative at input '{'
line 2:9 no viable alternative at input 's'

Specification: https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html#prod-ClassElement

@ris58h ris58h changed the title [javascript] Static property in class [javascript] Support static class fields May 24, 2023
ris58h added a commit to ris58h/grammars-v4 that referenced this issue Jun 13, 2023
ris58h added a commit to ris58h/grammars-v4 that referenced this issue Jun 13, 2023
ris58h added a commit to ris58h/grammars-v4 that referenced this issue Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants