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

Empty "while" statement causes crash #736

Open
Willard21 opened this issue Aug 24, 2020 · 1 comment
Open

Empty "while" statement causes crash #736

Willard21 opened this issue Aug 24, 2020 · 1 comment

Comments

@Willard21
Copy link

An empty while statement crashes with the completely useless "Something's wrong with the HTML but we're not sure what" message in the webpage environment. The PJS environment crashes too, but it at least gives a line number and an explanation.

To Reproduce:

var i = 10;
while(--i);

Expected Behavior:
It should just work. This is valid Javascript. Or if the more "standard" syntax is desired, it should give a line number pointing to the problem.

@pamelafox
Copy link
Collaborator

Thanks for the report, Willard! I reproduced as well.

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