test262/src
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
..
accessor-names Add cases for default identifier names in accessor-names 2019-08-14 17:02:03 -04:00
annex-b-fns Remove es6id from generation files 2019-08-05 10:54:37 -04:00
arguments Add templates for trailing comma in arguments list 2018-09-04 17:10:51 -04:00
assignment-target-type refactor: remove function syntax boundary from AssignmentTargetType templates 2021-08-19 11:52:48 -04:00
async-functions Separate cases 2020-10-05 10:53:43 -04:00
async-generators chore: update src/**/*.case to use assert.compareArray wherever applicable 2021-10-01 16:38:56 -04:00
class-elements chore: update src/**/*.case to use assert.compareArray wherever applicable 2021-10-01 16:38:56 -04:00
compound-assignment-private Fix tests for private reference with logical assignment 2022-02-21 15:38:59 -05:00
computed-property-names Improve coverage by invoking functions as intended 2021-10-05 16:22:56 -04:00
declarations naming 2018-12-20 12:53:31 -05:00
direct-eval-code Remove template that is generating duplicate tests 2020-10-29 13:48:50 -04:00
dstr-assignment Remove unused functions 2021-10-13 14:18:32 -04:00
dstr-assignment-for-await chore: migrate $ERROR -> throw new Test262Error in src/* 2021-07-22 10:56:15 -04:00
dstr-binding Array binding: add rest element direct binding test case 2020-08-20 12:48:08 -04:00
dstr-binding-for-await Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
dynamic-import Update eval-script-code-host-resolves-module-code.case 2021-10-22 09:00:00 -04:00
function-forms Coverage: read-only function expression name. Closes gh-2896 2020-11-18 16:30:13 -05:00
generators chore: update src/**/*.case to use assert.compareArray wherever applicable 2021-10-01 16:38:56 -04:00
identifier-names Add cases with assignment patterns 2019-08-14 18:53:46 -04:00
insignificant-input-elements Add a maintenance file for src/insignificant-input-elements 2021-07-16 09:49:17 -04:00
invalid-private-names Remove invalid private name templates 2019-01-30 06:44:10 -08:00
logical-assignment-private Fix tests for private reference with logical assignment 2022-02-21 15:38:59 -05:00
spread chore: update src/**/*.case to use assert.compareArray wherever applicable 2021-10-01 16:38:56 -04:00
statementList Remove superfluous EmptyStatement 2021-10-05 16:28:06 -04:00
subclass-builtins Update WeakRef.case 2020-09-29 18:00:55 -04:00
top-level-await Add missing "flags: [module]" to top level await tests 2019-10-03 11:35:48 +02:00