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
Description
Simple assignment does not conform with the ECMAScript specification.
Steps to Reproduce
constprintEval=src=>{try{print(eval(src));}catch(err){print("ERROR",err.message);}};printEval(`let x = 0; ++(x)`);printEval(`let x = 0; ++((x))`);printEval(`let x; (x) = "single-wrapped"`);printEval(`let x; ((x)) = "double-wrapped"`);
Actual behavior
1
ERROR no reference
single-wrapped
ERROR no reference
Expected behavior
1
1
single-wrapped
double-wrapped
There are early errors for UpdateExpression/AssignmentExpression/etc. with invalid assignment targets, but AssignmentTargetType explicitly recurses into parenthesized expressions. XS correctly respects this for a single level of wrapping parentheses, but incorrectly rejects it for more than one.
Environment: XS 14.2.0 32 4
Description
Simple assignment does not conform with the ECMAScript specification.
Steps to Reproduce
Actual behavior
Expected behavior
There are early errors for UpdateExpression/AssignmentExpression/etc. with invalid assignment targets, but AssignmentTargetType explicitly recurses into parenthesized expressions. XS correctly respects this for a single level of wrapping parentheses, but incorrectly rejects it for more than one.
test262 pull request: tc39/test262#3963
The text was updated successfully, but these errors were encountered: