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

Infinite loop in class body #143

Closed
bstefanescu opened this issue Oct 28, 2020 · 0 comments · Fixed by #144
Closed

Infinite loop in class body #143

bstefanescu opened this issue Oct 28, 2020 · 0 comments · Fixed by #144
Assignees
Milestone

Comments

@bstefanescu
Copy link

Parsing the following (invalid) class will enter an infinite loop in parseClassBody, instead of reporting a syntax error:

class Test {
    a, b
}

This happens every time you use a comma instead of a semicolon as a field or method delimiter.

@KFlash KFlash added this to the 4.0 milestone Oct 28, 2020
3cp added a commit that referenced this issue Oct 28, 2020
@3cp 3cp closed this as completed in #144 Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants