-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Incomplete switch statement causes espree to hang/crash #146
Comments
Yuck. I'm stuck away from a computer, any interest in investigating? |
Yes I'll try to find out what's up sometime later today. |
|
Tracked down the bad code inside of while (index < length) {
if (match("}") || matchKeyword("default") || matchKeyword("case")) {
break;
}
statement = parseSourceElement();
consequent.push(statement);
} If you add |
Okay I think something like ( |
Nice analysis! This might be a case where you need to see if |
Fix: Incomplete Switch Statement Hangs (Fixes #146)
The following code will crash espree (so long as it's followed by a newline):
It's very easy to reproduce:
The text was updated successfully, but these errors were encountered: