5356 Commits

Author SHA1 Message Date
Stuart Cook
c11d6b00bc
Add a test for for await (async of (#2982) 2021-05-04 15:05:45 -04:00
Shu-yu Guo
70bc32edab
Give Error cause tests the error-cause feature tag (#2977) 2021-04-23 15:53:14 -07:00
legendecas
3e4e07c836
Add tests for stage 3 proposal error cause (#2965)
* Add tests for error cause

* Correct invocation of Proxy constructor

Co-authored-by: Mike Pennisi <mike@mikepennisi.com>
2021-04-23 14:45:27 -04:00
Alexey Shvayka
eca69e2c95 Test internal methods of module namespace objects with indices 2021-04-20 09:59:06 -04:00
Alexey Shvayka
ce74c5f52d Test BigInt wrapper object 2021-04-20 09:58:16 -04:00
Alexey Shvayka
dcccc418b3 Test Symbol wrapper object 2021-04-20 09:58:16 -04:00
Rick Waldron
bd65623af6 Revert "Add valid index prototype chain [[Set]] tests"
This reverts commit cc18d5bb144a47994555d31e65f74e4936bfd1ee.
2021-04-20 09:56:22 -04:00
Rick Waldron
b90326d9a4 Revert "Add valid index Reflect.set tests"
This reverts commit 20cd505a9659b80d6c03c85ab27d95624a6a0055.
2021-04-20 09:56:22 -04:00
Rick Waldron
3d77404e4f Revert "Add invalid index prototype chain [[Set]] tests"
This reverts commit 477e6ddffec9f15b93e6596749eaf2e45f421065.
2021-04-20 09:56:22 -04:00
Rick Waldron
b110681292 Revert "Add invalid index Reflect.set tests"
This reverts commit a3aa19d2e20aff709f91c1414c6aa33a4fc37ef8.
2021-04-20 09:56:22 -04:00
Alexey Shvayka
a3aa19d2e2 Add invalid index Reflect.set tests 2021-04-20 09:55:27 -04:00
Alexey Shvayka
477e6ddffe Add invalid index prototype chain [[Set]] tests 2021-04-20 09:55:27 -04:00
Alexey Shvayka
20cd505a96 Add valid index Reflect.set tests 2021-04-20 09:55:27 -04:00
Alexey Shvayka
cc18d5bb14 Add valid index prototype chain [[Set]] tests 2021-04-20 09:55:27 -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
Mike Pennisi
b9bc25096b Apply logical-assignment-operators feature flag 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
Alexey Shvayka
6e61dd7754
Test Array's toString() with non-callable "join" (#2973)
* Test Array's toString() with non-callable "join"

* Remove Array.prototype.join modifications
2021-04-15 20:51:08 -04: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
Frank Yung-Fong Tang
31126581e7
Change Intl.(ListFormat|DisplayNames|Segmenter) (#2952)
* Change Intl.(ListFormat|DisplayNames|Segmenter)

Sync from ToObject to GetOptionsObject which throw TypeError
while the option is not object

* Add null and false to test
2021-03-08 19:31:26 -08:00
Mike Pennisi
aca79695ba Add coverage for Yield parameter in RHS of in 2021-03-06 12:28:45 -05:00
Mike Pennisi
e990dce904 Correct formatting in INTERPRETING.md
Prior to this commit, the implementation of Markdown on GitHub.com
caused the contents of two list items to be rendered outside of their
containing list. Update the indentation so that the structure of the
rendered output matches the structure implied by the text.
2021-03-05 13:00:34 -05:00
Alexey Shvayka
c00087e129 Test Array.prototype.sort called with a primitive 2021-03-02 16:33:02 -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
Ron Buckton
0d922ddc97 Fix lint error 2021-02-25 11:03:39 -05:00
Ron Buckton
64ea2d19e6 rename no-indices-array test 2021-02-25 11:03:39 -05:00
Ron Buckton
d66f270313 PR Feedback 2021-02-25 11:03:39 -05:00
Ron Buckton
a567e4c819 Updates to regexp-match-indices tests based on d-flag 2021-02-25 11:03:39 -05:00
Ujjwal Sharma
f6034ebe9f Add DateTimeFormat tests for OrdinaryHasInstance
Add tests to make sure DateTimeFormat does not call the instanceof
operator and calls OrdinaryHasInstance instead.

Refs: https://github.com/tc39/ecma402/pull/500
2021-02-16 12:20:50 -05:00
Ujjwal Sharma
76ab0187c0 Add NumberFormat tests for OrdinaryHasInstance
Add tests to make sure NumberFormat does not call the instanceof
operator and calls OrdinaryHasInstance instead.

Refs: https://github.com/tc39/ecma402/pull/500
2021-02-16 12:20:50 -05:00
Alexey Shvayka
950d097516 Add Object.freeze test 2021-02-08 15:41:23 -05:00
Alexey Shvayka
a4ca510b55 Add Object.seal test 2021-02-08 15:41:23 -05:00
Alexey Shvayka
fd6bbbe581 Add Object.freeze tests 2021-02-08 15:40:48 -05:00
Alexey Shvayka
1fd4fb480c Add Object.seal tests 2021-02-08 15:40:48 -05:00
Alexey Shvayka
83ffa3d911 Add Object.preventExtensions tests 2021-02-08 15:40:48 -05:00
Michael Dyck
fd27d1f5d0 Remove mention of "phase: early", since it's never used
(It was folded into "phase: parse" in PR #1366.)
2021-02-04 09:08:19 -05:00
Yusuke Suzuki
93a2ba8c28 Fix BigInt TypedArrays tests
1. test/built-ins/TypedArray/prototype/findIndex/BigInt/predicate-may-detach-buffer.js
It is not updated when a60a67ea880bb4b5de849ee8f7676a475f60c85f is landed. This patch fixes it.

2. test/built-ins/TypedArray/prototype/filter/BigInt/callbackfn-detachbuffer.js
After detaching, BigInt64Array/BigUint64Array will produce undefined for indexed access. And
if `filter`'s callback says `true` for these results, we need to store `ToBigInt(undefined)`
to a newly resulted BigInt64Array/BigUint64Array and this will throw an error. But this test
assumed it does not throw. This patch fixed flag so that we do not throw that error while keeping
detached typed arrays tested.
2021-02-03 22:10:52 -05:00
ExE Boss
8f904d8cc8 Set function length and name in CreateBuiltinFunction 2021-01-29 09:45:20 -05:00
jmdyck
11624af8d0
Update "info" field (#2941)
The quoted spec wording changed in ecma262#1694.
2021-01-28 16:03:01 -08:00
Mathias Bynens
79060efc7f Add tests for accessors setting their successor 2021-01-27 09:23:28 -05:00
Mathias Bynens
e610e75985 Add tests for accessors setting precedessors 2021-01-27 09:23:28 -05:00
Mathias Bynens
80c18c0ea8 Add tests for accessors popping elements 2021-01-27 09:23:28 -05:00
Mathias Bynens
7733d900b2 Add tests for accessors increasing length 2021-01-27 09:23:28 -05:00
Mathias Bynens
b7da7c75ce Rename tests 2021-01-27 09:23:28 -05:00
Mathias Bynens
82f634d7fc Add tests for more precise Array#sort
https://github.com/tc39/ecma262/pull/1585
2021-01-27 09:23:28 -05:00
Oskari Noppa
a840b0d093 Shorten a very long filename
A quite popular solution for encrypting files on Linux,
[eCryptfs](https://wiki.archlinux.org/index.php/ECryptfs), can't handle
filenames longer than 143 characters when filename encryption is enabled. It
just so happens that the name of this file was 144 characters long, which makes
pulling the repository to an encrypted folder fail.
2021-01-19 09:06:30 -05: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