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

fix member accessors #93

Merged
merged 4 commits into from
Aug 5, 2015
Merged

fix member accessors #93

merged 4 commits into from
Aug 5, 2015

Conversation

mmckegg
Copy link
Contributor

@mmckegg mmckegg commented Aug 5, 2015

As reported in #72

Running on the following file produces an esprima parse error:

test[0]
fail

This is because there is no handler for MemberExpressionClosing and it is getting converted to:

test[0]fail

This PR adds a test for this case and rule for adding a newline after MemberExpressionClosing.

@mmckegg
Copy link
Contributor Author

mmckegg commented Aug 5, 2015

Actually this has a problem, it's handling all MemberExpressions, not just ones at the end of line. 😕

Will keep trying!

@feross
Copy link
Collaborator

feross commented Aug 5, 2015

Is it working as expected after your new commits? Thanks for trying!

@mmckegg
Copy link
Contributor Author

mmckegg commented Aug 5, 2015

@feross: Yes!

Ran it on audio-slot and everything looks great now.

@feross feross merged commit 45cb044 into max-mapper:master Aug 5, 2015
@feross
Copy link
Collaborator

feross commented Aug 5, 2015

Released as 1.6.2.

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.

2 participants