From 2060494f280ba89d71a0f51d4ff171bafe476a05 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Sun, 19 Nov 2023 18:05:20 -0500 Subject: [PATCH] Test for assignment with target wrapped in two sets of parentheses --- .../language/expressions/postfix-decrement/target-cover-id.js | 4 +++- .../language/expressions/postfix-increment/target-cover-id.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/language/expressions/postfix-decrement/target-cover-id.js b/test/language/expressions/postfix-decrement/target-cover-id.js index 446b5cb0f8..13d6c77df8 100644 --- a/test/language/expressions/postfix-decrement/target-cover-id.js +++ b/test/language/expressions/postfix-decrement/target-cover-id.js @@ -22,8 +22,10 @@ info: | 2. Return true. ---*/ -var y = 1; +var y = 2; (y)--; +assert.sameValue(y, 1); +((y))--; assert.sameValue(y, 0); diff --git a/test/language/expressions/postfix-increment/target-cover-id.js b/test/language/expressions/postfix-increment/target-cover-id.js index b01ce5f05e..fb5af50ffa 100644 --- a/test/language/expressions/postfix-increment/target-cover-id.js +++ b/test/language/expressions/postfix-increment/target-cover-id.js @@ -25,5 +25,7 @@ info: | var y = 1; (y)++; - assert.sameValue(y, 2); + +((y))++; +assert.sameValue(y, 3);