1339 Commits

Author SHA1 Message Date
Mike Pennisi
93541f09e2 Test sequence during deletion of SuperProperty 2021-06-24 13:15:34 -04:00
Michael Dyck
52e7bfc4b6 "flags" is a top-level key, not a key within "negative" 2021-06-10 12:03:05 -04:00
Michael Dyck
675cad4aa3 Remove leading spaces from "---*/" line 2021-06-10 12:03:05 -04:00
Mike Pennisi
e793512b55 Add tests for the "JSON modules" language proposal
https://github.com/tc39/proposal-json-modules

This proposal advanced to Stage 3 of TC39's standardization process on
2021-01-27.
2021-05-28 20:02:59 -04:00
Mike Pennisi
d454b8389b Move some AnnexB tests per proposed spec change
Additionally, update test metadata and introduce two new tests to
complete coverage.

Reference: "Normative: Make B.1.{1,2} normative"
https://github.com/tc39/ecma262/pull/1867
2021-05-21 13:06:41 -04:00
jugglinmike
8183e9a629
Add test for TLA DFS invariant (#2989)
This behavior was introduced after the Top-Level Await proposal reached
stage 3: https://github.com/tc39/proposal-top-level-await/pull/159
2021-05-14 12:26:25 -04:00
Mike Pennisi
5ae04619a9 Generate tests 2021-05-14 11:04:29 -04:00
Mike Pennisi
18834b2e19 Add tests for import assertions 2021-05-14 11:04:29 -04:00
Mike Pennisi
9b622bf093 Remove or relocate misleading tests
These tests were designed to test the built-in "Promise.race Resolve
Element function," but ECMA262 does not describe such a function.

Contrary to the test's description, the function under test is created
by the InstantiateArrowFunctionExpression abstract operation. The
following tests verify most of the details directly (only the function
object's extensibility was not already tested by the existing tests):

- test/language/expressions/arrow-function/name.js
- test/language/expressions/arrow-function/throw-new.js
- test/language/expressions/arrow-function/prototype-rules.js

The definition of the built-in resolving functions is closely related,
but Test262 already includes tests for the corresponding concerns:

- test/built-ins/Promise/resolve-function-extensible.js
- test/built-ins/Promise/resolve-function-name.js
- test/built-ins/Promise/resolve-function-nonconstructor.js
- test/built-ins/Promise/resolve-function-prototype.js

Remove the tests and introduce one additional test to preserve coverage
while improving discoverability.
2021-05-11 17:36:28 -04:00
Stuart Cook
9da1d6119c
Add more tests for for (async of edge-cases (#2983) 2021-05-07 16:16:34 -04:00
Stuart Cook
c11d6b00bc
Add a test for for await (async of (#2982) 2021-05-04 15:05:45 -04:00
Alexey Shvayka
eca69e2c95 Test internal methods of module namespace objects with indices 2021-04-20 09:59:06 -04:00
Ross Kirsling
0f82225ccc Strengthen sloppy-mode tests for future reserved words. 2021-04-20 09:54:23 -04:00
Mike Pennisi
3addcc4b04 Generate tests 2021-04-20 09:53:57 -04:00
jugglinmike
61c6f8214b
Add tests for stage 3 proposal "private fields in" (#2963) 2021-04-19 07:50:52 -07:00
strager
6888a8df82
Fix typo in private getter/setter tests (#2971)
Several tests for getters and setters claim to check for an early
SyntaxError regarding mixing static and non-static propeties with the
same name. However, the tests trigger another issue: the getters have no
method body; they're missing curlies.

Fix the tests to test only the intended SyntaxError, not unrelated
SyntaxError-s.
2021-04-09 20:13:41 -04:00
Mike Pennisi
aca79695ba Add coverage for Yield parameter in RHS of in 2021-03-06 12:28:45 -05:00
Alexey Shvayka
c8daa32e48
Improve object rest/spread with Proxy coverage (#2930)
* Test object spread with Proxy

* Test object spread with non-enumerable keys and Proxy

* Test object rest with excluded keys and Proxy

* Test object rest with non-enumerable keys and Proxy
2021-02-26 16:59:51 -05:00
Gus Caplan
516ca9af39 Update tests for ECMA262 #2216
https://github.com/tc39/ecma262/pull/2216
2021-02-26 11:49:49 -05:00
jmdyck
11624af8d0
Update "info" field (#2941)
The quoted spec wording changed in ecma262#1694.
2021-01-28 16:03:01 -08: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
Kevin Gibbons
96f1e2713b add tests for for ( async of 2021-01-18 09:40:36 -05:00
Alexey Shvayka
51666c5315 Improve coverage of mapped arguments' [[DefineOwnProperty]] method 2020-12-11 11:06:51 -05:00
Rick Waldron
8051f05354 Improved metadata 2020-11-18 16:44:55 -05:00
Rick Waldron
fe5f8192de Fix typo 2020-11-18 16:44:55 -05:00
Rick Waldron
b5ccbcb5e4 Coverage: Missing test for function length and parameter destructuring. Closes gh-2895 2020-11-18 16:44:55 -05:00
Rick Waldron
602c828805 Coverage: read-only function expression name. Closes gh-2896 2020-11-18 16:30:13 -05:00
Rick Waldron
e1bfbbfdc8 Fix: Broken test: language/global-code/decl-lex-configurable-global.js. Closes gh-2897 2020-11-18 14:00:54 -05:00
Rick Waldron
1c33fdb0ca Test cases for invalid escape sequences preceding "use strict". Fixes gh-2893 2020-11-04 13:46:04 -05:00
Rick Waldron
a563e3a3f8 Remove template that is generating duplicate tests 2020-10-29 13:48:50 -04:00
Rick Waldron
d6b342338e arbitrary-module-namespace-names: Assertion correction. Fixes gh-2866 2020-10-19 17:47:40 -04:00
Rick Waldron
3439564fca Add "☿" export to export-expname_FIXTURE.js. Fixes gh-2866 2020-10-17 09:19:45 -04:00
Rick Waldron
23f30e527a Move $DONOTEVALUATE() calls to correct position 2020-10-16 20:37:40 -04:00
Rick Waldron
487b77eda8 Fix gh-2866 2020-10-16 20:34:32 -04:00
Shu-yu Guo
f38e55def4 Add SyntaxError tests for string literal export name 2020-10-16 20:32:10 -04:00
Rick Waldron
d8efa93bec Generate tests 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
b89c3bf369 Generate tests 2020-10-14 14:01:01 -04:00
Caio Lima
72154b17fc Adding test cases to validate private field access with primitive receivers 2020-10-09 16:36:09 -04:00
Gus Caplan
6aa8338d23 add feature tags 2020-10-08 18:05:00 -04:00
Gus Caplan
881c9e3ba5 move __proto__ tests 2020-10-08 18:05:00 -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
6db0565b76 Generate tests 2020-10-05 10:53:43 -04:00
Rick Waldron
9e71e2120a Generate tests 2020-10-05 10:53:43 -04:00
Gus Caplan
ad8a5e9940 add Arbitrary module namespace names feature 2020-09-30 14:08:10 -04:00
Rick Waldron
f4ec59ad38 Generate tests 2020-09-30 11:51:44 -04:00
Rick Waldron
70a39ad0fb Fix: test/language/module-code/export-expname_FIXTURE.js remove frontmatter. 2020-09-30 10:22:52 -04:00
Rick Waldron
dc74a0b0ee Generate tests 2020-09-30 10:05:47 -04:00
Rick Waldron
fd4ac46b34 Update test/language/module-code/export-expname-binding-string.js
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-09-30 09:39:35 -04:00
Bradley Farias
c43c9d8448 Exports can be Arbitrary Strings 2020-09-30 09:39:35 -04:00