You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AnirudhKonduru
changed the title
Assignment with invalid LHS does not throw an error
Assignment with invalid LHS does not throw an SyntaxError
Jun 18, 2020
AnirudhKonduru
changed the title
Assignment with invalid LHS does not throw an SyntaxError
Assignment with invalid LHS does not throw SyntaxError
Jun 18, 2020
Assignments with invalid left-hand side(
1=2
) return the value of the right-hand side(2
) instead of throwing SyntaxError.To Reproduce
This JavaScript code reproduces the issue:
-->
Expected behavior
The spec for the expected behaviour can be found in the ECMAScript specification.
The text was updated successfully, but these errors were encountered: