mirror of https://github.com/tc39/test262.git
Test for assignment with target wrapped in two sets of parentheses
This commit is contained in:
parent
718aa71683
commit
2060494f28
|
@ -22,8 +22,10 @@ info: |
|
|||
2. Return true.
|
||||
---*/
|
||||
|
||||
var y = 1;
|
||||
var y = 2;
|
||||
|
||||
(y)--;
|
||||
assert.sameValue(y, 1);
|
||||
|
||||
((y))--;
|
||||
assert.sameValue(y, 0);
|
||||
|
|
|
@ -25,5 +25,7 @@ info: |
|
|||
var y = 1;
|
||||
|
||||
(y)++;
|
||||
|
||||
assert.sameValue(y, 2);
|
||||
|
||||
((y))++;
|
||||
assert.sameValue(y, 3);
|
||||
|
|
Loading…
Reference in New Issue