-
-
Notifications
You must be signed in to change notification settings - Fork 411
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] - Move increment and decrement operations to Update
expression
#2565
Conversation
Test262 conformance changes
|
Codecov Report
@@ Coverage Diff @@
## main #2565 +/- ##
==========================================
+ Coverage 50.01% 50.14% +0.12%
==========================================
Files 380 381 +1
Lines 37786 37776 -10
==========================================
+ Hits 18900 18941 +41
+ Misses 18886 18835 -51
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
607602d
to
8fc2b9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really nice!
fn as_simple( | ||
expr: &Expression, | ||
position: Position, | ||
strict: bool, | ||
) -> ParseResult<Option<UpdateTarget>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really liked this change!
bors r+ |
This Pull Request changes the following: - Move postfix/prefix increment and decrement operations from the `Unary` expression to a new `Update` expression. - Add a special type for the `Update` expression target as it is very limited in comparision to an `Unary` target. - This makes bytecode compilation more typesafe for these operations and removes syntax errors from the bytecompiler without introducing panics (see #1907).
Pull request successfully merged into main. Build succeeded: |
Update
expressionUpdate
expression
This Pull Request changes the following:
Unary
expression to a newUpdate
expression.Update
expression target as it is very limited in comparision to anUnary
target.