Commit Graph

694 Commits

Author SHA1 Message Date
devsnek 80678e0bed Update identifier-strict-recursive.js 2021-07-20 10:33:29 -04:00
devsnek 2be28ba0c8 add test that delete early error is recursive 2021-07-20 10:33:29 -04:00
Mike Pennisi 3b06fd012a Update test for deletion of SuperProperty
The following proposed change modifies the semantics this test was
originally written to verify:

Normative: Allow null or undefined in Reference Records
https://github.com/tc39/ecma262/pull/2267
2021-07-19 13:28:09 -04:00
jugglinmike afe217b318
Add tests for "Class Static Init. Blocks" proposal (#2968)
* Add tests for "Class Static Init. Blocks" proposal

This proposal is currently at "stage 3" in TC39's standardization
process.

* fixup! Add tests for "Class Static Init. Blocks" proposal

* Correct identifier reference

* Update tests for grammar

* Update tests for identifiers

* Add tests for scope derivation
2021-07-15 08:49:12 -04:00
Mike Pennisi 9b4ca4371b Add tests for change in Reference Records
These tests support the following normative change

"Normative: Allow null or undefined in Reference Records"
https://github.com/tc39/ecma262/pull/2267

The tests concerning the `delete` operator increase coverage to verify
behavior which, though related, is not altered by the normative change.
These tests are intended to guard against regressions as engines
implement the new semantics.
2021-06-24 13:16:43 -04:00
Mike Pennisi 93541f09e2 Test sequence during deletion of SuperProperty 2021-06-24 13:15:34 -04:00
Michael Dyck 675cad4aa3 Remove leading spaces from "---*/" line 2021-06-10 12:03:05 -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
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
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
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
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
Rick Waldron 602c828805 Coverage: read-only function expression name. Closes gh-2896 2020-11-18 16:30:13 -05: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
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
Rick Waldron f4ec59ad38 Generate tests 2020-09-30 11:51:44 -04:00
Rick Waldron dc74a0b0ee Generate tests 2020-09-30 10:05:47 -04:00
Rick Waldron 348a706c5d Generate tests 2020-09-25 16:12:12 -04:00
Rick Waldron 677ae94ae9 Generate tests 2020-09-25 15:54:49 -04:00
Rick Waldron 21e97fb616 Generate tests 2020-09-25 14:42:12 -04:00
Rick Waldron 3f2a2aa464 Generate tests 2020-09-25 14:42:12 -04:00
Rick Waldron cd778bea8c Generate tests 2020-09-25 13:30:10 -04:00
Rick Waldron 73db72baad Generate tests 2020-09-25 13:15:33 -04:00
Rick Waldron 76dacfb17c Generate tests 2020-09-25 12:58:22 -04:00
Rick Waldron 5090f7adfe Generate tests 2020-09-25 12:01:39 -04:00
Rick Waldron e2a4e79a11 Coverage: formal parameter binding identifier "eval" must have the correct value in non-strict code. Fixes gh-2814 2020-09-24 14:54:48 -04:00
Rick Waldron 4bcc582183 Regenerate tests 2020-09-23 11:18:16 -04:00
Rick Waldron 601688856e Generate tests 2020-09-23 11:18:16 -04:00
Rick Waldron 41c5a42fa7 Generate tests 2020-09-22 10:37:57 -04:00
Rick Waldron b59bd307a8 Coverage: async arrow in ClassHeritage. Fixes gh-1736 2020-09-22 10:37:57 -04:00
Rick Waldron fd92897147 Generate tests 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 1ab47810d1 Generate tests 2020-09-17 16:24:07 -04:00
Rick Waldron be7e9ff98b Computed Property Names: YieldExpression that yields something. 2020-09-17 16:24:07 -04:00
Rick Waldron 916cdb72e5 Generate tests 2020-09-17 16:23:26 -04:00
Rick Waldron 67382a1e8e Add await test: await is valid in non-module strict mode code. 2020-09-17 16:22:22 -04:00
Rick Waldron 057a31e15e Add coverage for reserved words in shorthand properties. Fixes gh-1179 2020-09-17 16:22:22 -04:00
Rick Waldron 9fc299915d get and set in MethodDefinition must not be escaped. Fixes gh-2078 2020-09-15 16:34:36 -04:00
Rick Waldron 92a200b29f Attempting to set a value to a binding that no longer exists must throw a ReferenceError exception in strict mode code. Fixes gh-427 2020-09-15 16:33:59 -04:00