-
-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[parser UpdateExpression] panics when the prefix/postfix increment/decrement target is a number #779
Comments
Thanks for submitting. Simple assignment like This should be detected during static analysis. |
Can the title be changed to something like The relevant code bits start in the Regarding |
But another problem is: boa/boa/src/syntax/parser/expression/left_hand_side/mod.rs Lines 66 to 72 in 907030b
which doesnt account properly the LHS expressions as per the spec https://tc39.es/ecma262/#prod-LeftHandSideExpression |
This no longer panics, it returns a |
Describe the bug
Expected an Error, not a panic.
To Reproduce
Can be reproduced with this program:
Expected behavior
An Error, not a panic
Build environment (please complete the following information):
Additional context
Full stacktrace:
The text was updated successfully, but these errors were encountered: