Huáng Jùnliàng
79e3bc5176
add noStrict flag to yield-as-binding-id cases ( #3551 )
2022-06-09 09:01:21 +02:00
legendecas
6f8e0f67ca
Decorators: add initial tests on class
2022-05-18 09:49:49 -04:00
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
Philip Chimento
1b1097dbf6
Add tests for compound assignment to private reference
...
This tests compound assignment, with each compound assignment operator,
to each kind of private reference (private field, private accessor
property with getter and setter, private accessor property with only
getter, and private method). The latter two cannot be assigned to and
therefore throw.
Closes : #2940
2022-02-16 09:56:59 -05:00
dnalborczyk
0659f8d952
Update eval-script-code-host-resolves-module-code.case
2021-10-22 09:00:00 -04:00
Mike Pennisi
8d420cef41
Remove unused functions
2021-10-13 14:18:32 -04:00
Mike Pennisi
891b7915bd
Remove superfluous EmptyStatement
2021-10-05 16:28:06 -04:00
Mike Pennisi
a6834093aa
Improve coverage by invoking functions as intended
...
Some tests which include function declarations designed to verify
behavior do not reference those functions. Insert the references
necessary for those functions to serve their intended purpose.
2021-10-05 16:22:56 -04:00
rwaldron
e6b47d7738
chore: update src/**/*.case to use assert.compareArray wherever applicable
2021-10-01 16:38:56 -04:00
Mike Pennisi
d9ddf80479
Revert "Merge pull request #3219 from tc39/rwaldron/migrate-comparearray"
...
This reverts commit b690cb67be
, reversing
changes made to 50dd431dff
. This is
necessary because the reverted changeset reduced coverage by an unknown
extent.
2021-10-01 10:18:47 -04:00
rwaldron
d7414a8d8e
chore: update src/**/*.case to use assert.compareArray wherever applicable
2021-09-24 11:21:44 -04:00
rwaldron
85a54852e6
refactor: remove function syntax boundary from AssignmentTargetType templates
2021-08-19 11:52:48 -04:00
rwaldron
4bdba71130
chore: migrate $ERROR -> throw new Test262Error in src/*
2021-07-22 10:56:15 -04:00
Richard Gibson
d9a20dfe34
Add a maintenance file for src/insignificant-input-elements
2021-07-16 09:49:17 -04:00
Richard Gibson
3a69fc75d9
Add a test case for each WhiteSpace/LineTerminator character
2021-07-16 09:49:17 -04:00
Richard Gibson
5b1cfdd2b0
Add template for whitespace-after-regular-expression-literal tests
2021-07-16 09:49:17 -04:00
Mike Pennisi
18834b2e19
Add tests for import assertions
2021-05-14 11:04:29 -04:00
Mike Pennisi
b9bc25096b
Apply `logical-assignment-operators` feature flag
2021-04-20 09:53:57 -04:00
Caio Lima
f81c2f5422
Adding test case for super access from class field defined as arrow function
2021-01-18 09:41:23 -05:00
Rick Waldron
602c828805
Coverage: read-only function expression name. Closes gh-2896
2020-11-18 16:30:13 -05:00
Rick Waldron
a563e3a3f8
Remove template that is generating duplicate tests
2020-10-29 13:48:50 -04:00
Rick Waldron
0e77b43c9b
Split up indirect and direct eval cases
2020-10-14 14:20:46 -04:00
Rick Waldron
bab4da88e3
Remove erroneous test templates and generated files
2020-10-14 14:20:46 -04:00
Rick Waldron
0a84a4f176
Forbidden Extensions: revised to check property existence
2020-10-14 14:01:01 -04:00
Rick Waldron
a6d38ffe9a
Correction: add explicit language re: application of Forbidden Extensions, bullet 1
2020-10-07 16:43:31 -04:00
Rick Waldron
97e051114a
Separate cases
2020-10-05 10:53:43 -04:00
Rick Waldron
74a4152703
Coverage: lexical arguments, new.target, in async arrow functions. Fixes gh-1737
2020-10-05 10:53:43 -04:00
Rick Waldron
a7fcbb37b9
Fix: add flags to src/computed-property-names/evaluation/class-*-fields*. Fixes gh-2834
2020-09-30 11:51:44 -04:00
devsnek
2fade3db47
Update WeakRef.case
2020-09-29 18:00:55 -04:00
Rick Waldron
d65346149e
Coverage: computed property names from yield expression
...
# Conflicts:
# src/computed-property-names/evaluation/yield-expression.template
2020-09-25 16:12:12 -04:00
Rick Waldron
bba4fbc259
Coverage: globalThis[Symbol.unscopables]. Fixes gh-1750
2020-09-25 15:54:49 -04:00
Rick Waldron
4853f6d363
Make test async
2020-09-25 14:42:12 -04:00
Rick Waldron
2aff8eb9a4
Coverage: computed property names from await expression
2020-09-25 14:42:12 -04:00
Rick Waldron
4375480990
Coverage: computed property names that evaluate to null. Fixes gh-1734
2020-09-25 13:30:10 -04:00
Rick Waldron
ac19f339e7
Fix: poisoned next function in "IteratorClose is called when reference evaluation produces a "return" completion". Fixes gh-670
2020-09-25 13:15:33 -04:00
Rick Waldron
3213e789f4
Fix: some templates in Computed Property Names needed explicit paths.
2020-09-25 12:58:22 -04:00
Rick Waldron
1a1b1770e8
Fix: some templates in Forbidden Extensions needed explicit paths.
2020-09-25 12:01:39 -04:00
Rick Waldron
1dd15dd2f3
More cases
2020-09-23 11:18:16 -04:00
Rick Waldron
b59bd307a8
Coverage: async arrow in ClassHeritage. Fixes gh-1736
2020-09-22 10:37:57 -04:00
Rick Waldron
6a428b4a40
Coverage: forbidden extensions, bullet 1 & 2. Fixes gh-1749
2020-09-22 10:37:38 -04:00
HyeockJinKim
be99a3e519
Add coverage for rest properties with computed key
...
gh-2089
2020-09-22 10:31:33 -04:00
Rick Waldron
4ca3c51afd
Coverage: Computed Property Names. Fixes gh-1741
2020-09-17 16:24:07 -04:00
Rick Waldron
8b7adcdf00
AssignmentTargetType cases. Fixes gh-1268
2020-09-17 16:23:26 -04:00
Rick Waldron
cbfb7eb96a
src/subclass-builtins/*.case: Add missing features
2020-09-15 11:09:52 -04:00
Rick Waldron
485cb0b1c9
Coverage: check instanceof on instances of built-in subclasses. Fixes gh-659
2020-09-14 13:40:33 -04:00
Rick Waldron
dd80cd2ea9
Fixup Class Elements: make templates from custom V8 tests
2020-09-14 13:35:13 -04:00
Rick Waldron
0fde7c47fc
Remove whitespace per review
2020-09-10 11:14:18 -04:00
Rick Waldron
9e948733ce
Redeclaration of argument in direct eval in parameter expressions
2020-09-10 11:14:18 -04:00
Alexey Shvayka
e10392423a
Array binding: add rest element direct binding test case
2020-08-20 12:48:08 -04:00
Alexey Shvayka
432f6b4b72
Array binding: add overriden Array.prototype[Symbol.iterator] test case
2020-08-20 12:48:08 -04:00