Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
"Invalid left-hand side in assignment": incorrectly reported as SyntaxError #9487
According to the spec, they are not invalid syntax, but are rather runtime errors. In fact, you could make the case the parser shouldn't error on them at all, but if it's going to error, it would be helpful if it was correctly labeled to be consistent with what is reported in Chrome devtools console, for instance.
2++; 3 = 2;
Hey @getify! We really appreciate you taking the time to report an issue. The collaborators
Yes sorry I misspoke. This issue should stay focused on the wrong error type.
FTR, my misstatement about "runtime" was that I was incorrectly confusing this in my head with the case of