Skip to content

For #19: Fix an edge case parsing = and instanceof #228

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

Merged
merged 1 commit into from
Mar 18, 2018

Conversation

TysonAndre
Copy link
Contributor

This does not fix every single edge case.
This only fixes the edge cases for unary operators
on the left hand side of binary operators expecting a variable.

  • if (!$x = expr()) is something I've seen frequently, which is why I'm fixing this here. A complete fix would probably be more complex (e.g. deeply nested binary operators)

(That probably isn't even every single binary operator or unary operator)

See #19 (comment) and #19 (comment)

This does not fix every single edge case.
This only fixes the edge cases for unary operators
on the left hand side of binary operators expecting a variable.

(That probably isn't even every single binary operator or unary operator)
@TysonAndre
Copy link
Contributor Author

Is there anything that needs to be addressed for this or PR 232?

@roblourens roblourens merged commit 694b153 into microsoft:master Mar 18, 2018
@roblourens
Copy link
Member

Thanks for the PRs!

@TysonAndre TysonAndre deleted the fix-unary-lhs-binary branch June 19, 2018 02:15
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