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

[Merged by Bors] - Fixed assignment expression parsing #2268

Closed
wants to merge 1 commit into from

Conversation

Razican
Copy link
Member

@Razican Razican commented Sep 7, 2022

This Pull Request fixes/closes #2148.

It changes the following:

This overrides #2177

@Razican Razican added bug Something isn't working parser Issues surrounding the parser labels Sep 7, 2022
@Razican Razican added this to the v0.16.0 milestone Sep 7, 2022
@github-actions
Copy link

github-actions bot commented Sep 7, 2022

Test262 conformance changes

VM implementation

Test result main count PR count difference
Total 91,733 91,733 0
Passed 64,890 64,890 0
Ignored 16,580 16,580 0
Failed 10,263 10,263 0
Panics 0 0 0
Conformance 70.74% 70.74% 0.00%

@codecov
Copy link

codecov bot commented Sep 7, 2022

Codecov Report

Merging #2268 (a91523d) into main (b63d04c) will increase coverage by 0.00%.
The diff coverage is 33.33%.

@@           Coverage Diff           @@
##             main    #2268   +/-   ##
=======================================
  Coverage   41.33%   41.33%           
=======================================
  Files         234      234           
  Lines       22019    22021    +2     
=======================================
+ Hits         9101     9102    +1     
- Misses      12918    12919    +1     
Impacted Files Coverage Δ
...ine/src/syntax/parser/expression/assignment/mod.rs 52.42% <33.33%> (-0.05%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@raskad raskad left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jedel1043
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Sep 16, 2022
This Pull Request fixes/closes #2148.

It changes the following:

- When we start an assignment expression, the `/` token must be a regular expression literal. The division can only occur between expressions after the assignment operator.
- Added tests for the new behaviour, taken from #2177

This overrides #2177
@bors
Copy link

bors bot commented Sep 16, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Fixed assignment expression parsing [Merged by Bors] - Fixed assignment expression parsing Sep 16, 2022
@bors bors bot closed this Sep 16, 2022
@bors bors bot deleted the fix_assignment branch September 16, 2022 16:49
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.

The expression /=/ does not get parsed as a regexp
3 participants