mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
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…
x
Reference in New Issue
Block a user