test262/test/language
Philip Chimento 615a2eb9a1 Fix tests for private reference with logical assignment
There were three things wrong with the 'and', 'or', and 'nullish' tests
that I added as part of #2940:

1. They were in the wrong folder (should be
   expressions/logical-assignment, not expressions/compound-assignment)
2. The tests for ||= and ??= on readonly accessor properties were
   incorrect. These assignments would short-circuit if the getter
   returned 1 as it previously did, so PutValue would not throw.
3. The tests for ||= and ??= on private methods were invalid, as a
   method always evaluates to true in a boolean context, and is not
   nullish, so these would always short-circuit.

I've removed the invalid private method cases, fixed the readonly
accessor cases, and added new templates to test the short-circuit
behaviour as well as the non-short-circuit behaviour.

Closes: #3413
2022-02-21 15:38:59 -05:00
..
arguments-object chore: migrate $ERROR -> throw new Test262Error in test/language/a* (#3095) 2021-07-21 13:42:51 -07:00
asi chore: migrate $ERROR -> throw new Test262Error in test/language/a* (#3095) 2021-07-21 13:42:51 -07:00
block-scope Remove harness file, arrayContains.js 2021-11-01 12:55:10 -04:00
comments Throw distinctive errors for different failures 2021-09-02 10:36:00 -04:00
computed-property-names Transform compareArray -> assert.compareArray: test/language/**/*.js (#3239) 2021-10-15 20:35:01 -04:00
destructuring/binding Improved metadata 2020-11-18 16:44:55 -05:00
directive-prologue Fix existing linting errors, update error phase, and add a new flags linter (#2086) 2019-03-06 12:24:44 -05:00
eval-code chore: migrate $ERROR -> throw new Test262Error in test/language/e* (#3098) 2021-07-28 13:48:39 -07:00
export Update "info" field (#2941) 2021-01-28 16:03:01 -08:00
expressions Fix tests for private reference with logical assignment 2022-02-21 15:38:59 -05:00
function-code chore: migrate $ERROR -> throw new Test262Error in test/language/f* (#3099) 2021-07-28 13:47:49 -07:00
future-reserved-words Strengthen sloppy-mode tests for future reserved words. 2021-04-20 09:54:23 -04:00
global-code chore: migrate $ERROR -> throw new Test262Error in test/language/g* (#3101) 2021-07-28 13:47:15 -07:00
identifier-resolution chore: migrate $ERROR -> throw new Test262Error in test/language/i* (#3102) 2021-07-28 13:46:58 -07:00
identifiers tools: enforce restriction on YAML negative key 2022-01-10 13:50:38 -05:00
import Add 'import-assertions' feature tag to json modules tests (#3016) 2021-06-24 14:13:45 -04:00
keywords Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
line-terminators chore: migrate $ERROR -> throw new Test262Error in test/language/line-terminators/* (#3103) 2021-07-28 13:46:23 -07:00
literals chore: migrate $ERROR -> throw new Test262Error in test/language/l* (#3104) 2021-07-28 13:45:44 -07:00
module-code Revert "Merge pull request #3219 from tc39/rwaldron/migrate-comparearray" 2021-10-01 10:18:47 -04:00
punctuators Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
reserved-words Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
rest-parameters Transform compareArray -> assert.compareArray: test/language/**/*.js (#3239) 2021-10-15 20:35:01 -04:00
source-text chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
statementList Remove superfluous EmptyStatement 2021-10-05 16:28:06 -04:00
statements Transform compareArray -> assert.compareArray: test/language/**/*.js (#3239) 2021-10-15 20:35:01 -04:00
types chore: migrate $ERROR -> throw new Test262Error in test/language/t* (#3106) 2021-07-28 13:44:19 -07:00
white-space chore: migrate $ERROR -> throw new Test262Error in test/language/white-space/* (#3107) 2021-07-28 13:43:40 -07:00