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

Parse comma expressions. #1084

Merged
merged 8 commits into from
May 21, 2013
Merged

Conversation

usrbincc
Copy link
Contributor

- Need `{"expr": true}` to allow comma expression statements.
- Assignments are okay if not the comma's final subexpression.
- Remove errors due to misparsing of comma expressions.
- Only the last expression of a comma expression will trigger the
  warning.
- Parens around the entire comma expression will prevent the warning.
- Parens around the assignment expression will prevent the warning.
@usrbincc
Copy link
Contributor Author

On second thought, the tests for GH-1018 from #1064 might still be good to have. Would it be okay to tack those onto this pull?

@valueof valueof merged commit 01fc53f into jshint:master May 21, 2013
@valueof
Copy link
Member

valueof commented May 21, 2013

Merged and preserved tests for #1018.

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 this pull request may close these issues.

None yet

2 participants