-
-
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] - Fix unary operations on this
#2507
[Merged by Bors] - Fix unary operations on this
#2507
Conversation
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.
Thank you for the fix! I have some improvements for it
Codecov Report
@@ Coverage Diff @@
## main #2507 +/- ##
==========================================
- Coverage 52.99% 51.64% -1.36%
==========================================
Files 343 355 +12
Lines 34755 35619 +864
==========================================
- Hits 18419 18396 -23
- Misses 16336 17223 +887
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Test262 conformance changes
|
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.
Implementation-wise looks good! Can you add a test case on https://github.com/boa-dev/boa/blob/main/boa_engine/src/tests.rs? I thought the test262 suite would catch this, but apparently it doesn't...
There are some failing checks. Can you run |
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 perfect to me!
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.
It's good for me! Thank you for the changes!! :)
Bors r+ |
<!--- Thank you for contributing to Boa! Please fill out the template below, and remove or add any information as you feel necessary. ---> This Pull Request fixes/closes #2416. Previously, prefix increment and decrement operations on `this` caused a panic. This PR makes the parser issue a syntax error when the operand UnaryExpression is not simple (as mentioned in https://tc39.es/ecma262/#sec-update-expressions-static-semantics-early-errors).
Pull request successfully merged into main. Build succeeded: |
this
this
This Pull Request fixes/closes #2416.
Previously, prefix increment and decrement operations on
this
caused a panic. This PR makes the parser issue a syntax error when the operand UnaryExpression is not simple (as mentioned in https://tc39.es/ecma262/#sec-update-expressions-static-semantics-early-errors).