Test for assignment with target wrapped in two sets of parentheses

This commit is contained in:
Richard Gibson 2023-11-19 18:05:20 -05:00
parent 718aa71683
commit 2060494f28
2 changed files with 6 additions and 2 deletions

View File

@ -22,8 +22,10 @@ info: |
2. Return true.
---*/
var y = 1;
var y = 2;
(y)--;
assert.sameValue(y, 1);
((y))--;
assert.sameValue(y, 0);

View File

@ -25,5 +25,7 @@ info: |
var y = 1;
(y)++;
assert.sameValue(y, 2);
((y))++;
assert.sameValue(y, 3);