(<expression>,)
is incorrectly treated as valid
#726
Labels
confirmed
issue reported has been reproduced
fixed - please verify
Issue has been fixed. Please verify and close.
Environment: XS 10.5.0
Description
XS seems to interpret a comma-terminated expression inside expression parentheses as valid, which it should not per CoverParenthesizedExpressionAndArrowParameterList:
Steps to Reproduce
Expected behavior
Each of the above statements should produce a SyntaxError.
Actual behavior
Both statements are accepted as equivalent to their valid counterparts that don't have the trailing comma.
The text was updated successfully, but these errors were encountered: