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

Fixed assign operator precedence #311

Merged
merged 3 commits into from
Apr 13, 2020

Conversation

HalidOdat
Copy link
Member

@HalidOdat HalidOdat commented Apr 13, 2020

This PR fixes #308.
The bug was caused because we were parsing assign operator in every expression in expression macro. Which broke the assign operator precedence.

I also added tests for it, in parser and exec.

@Razican Razican added bug Something isn't working parser Issues surrounding the parser labels Apr 13, 2020
Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks perfect to me. Thanks for the test too :)

@HalidOdat
Copy link
Member Author

Resolved the merge conflicts. I think it is ready to merge. :)

@Razican Razican added this to the v0.8.0 milestone Apr 13, 2020
@Razican Razican merged commit 505df91 into boa-dev:master Apr 13, 2020
@HalidOdat HalidOdat deleted the fix/assign-precedence branch April 13, 2020 20:37
@Razican Razican mentioned this pull request Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Issues surrounding the parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment operator not working in tests (a = a +1)
2 participants