2898 Commits

Author SHA1 Message Date
Ms2ger
fa91ef7f9a wpi 2025-06-23 11:06:29 +02:00
Ms2ger
823f4cfd20 Fix some esids that should have been lower case 2025-06-09 08:32:28 -07:00
Daniel Minor
81ba0de350
Move Map.prototype.getOrInsertComputed tests from staging to built-ins 2025-06-08 23:14:26 +02:00
Minseok Choe
f41447492b Update ctor-throws.js 2025-06-05 15:36:11 +02:00
André Bargull
c6ad284d99 Add coverage for IteratorClose in Promise combinators
SM doesn't pass these tests, whereas JSC and V8 passes them.
2025-06-04 10:27:46 +02:00
Ms2ger
9d4ce52163 Fix some esids that should have been lower case 2025-06-02 01:29:25 -07:00
Chengzhong Wu
9b127c190c Fixup incorrect assertion in AsyncGenerator.p.return with broken promises 2025-05-30 03:39:31 -07:00
André Bargull
19a91145b3 Add coverage for byteOffset with detached buffer in TypedArray.prototype.subarray
JSC doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
8744a9b02a Add coverage for species constructor returning typed array with same backing buffer
JSC doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
8081aa7365 Add coverage for negative indices with resizable typed arrays
SpiderMonkey doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
17bfbc8783 Add coverage for negative indices with resizable typed arrays to TA.prototype.with
V8 doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
88c5b410aa Add coverage for converting negative fractional index to zero in (Typed)Array.prototype.with
JSC doesn't handle this correctly for `TypedArray.prototype.with`.
2025-05-30 02:13:22 -07:00
André Bargull
7c9314b06b Add coverage for odd string lengths in Uint8Array.prototype.setFromHex
V8 doesn't handle this correctly for zero length typed arrays.
2025-05-30 02:13:22 -07:00
André Bargull
8649d5e117 Add coverage for throw completions in (Typed)Array.prototype.with
SpiderMonkey doesn't handle this correctly for `Array.prototype.with`.
2025-05-30 02:13:22 -07:00
Philip Chimento
006b3046fa Revert "add test for tc39/proposal-iterator-sequencing#19 (#4485)"
This reverts commit 60580a0042aad7db962d6bf330ff20316b847d77.
2025-05-30 00:59:17 -07:00
Michael Ficarra
60580a0042
add test for tc39/proposal-iterator-sequencing#19 (#4485) 2025-05-29 07:28:33 -07:00
Richard Gibson
99867ff618
harness: Simplify verifyCallableProperty (#4507)
Ref #4468
2025-05-28 20:53:15 +00:00
Sosuke Suzuki
4b5d36ab6e Add missing async flag to AsyncIteratorPrototype tests 2025-05-19 14:09:55 +02:00
Richard Gibson
296e7875bd RegExp: Add test cases for Unicode Script_Extensions=Unknown
Ref https://github.com/tc39/ecma262/issues/3590

regexp-generator is unfortunately unaware of the value:
https://github.com/mathiasbynens/regenerate-unicode-properties/issues/7
2025-05-16 12:49:45 -07:00
Ron Buckton
4dfd813f0d Update test/built-ins/DisposableStack/prototype/constructor.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2025-05-15 21:34:15 -07:00
Ron Buckton
fe1c065cbb Add remaining tests specific to DisposableStack 2025-05-15 21:34:15 -07:00
Daniel Minor
c2e3e37b68
Move WeakMap.prototype.getOrInsert tests from staging to built-ins (#4476)
* Fix esid and remove noStrict

* Fixup length.js and returns-value-if-key-is-not-present-symbol-key.js
2025-05-15 11:59:43 -07:00
André Bargull
1049f77ba3 Ensure typed array length is retrieved early in Atomics.{notify,wait} 2025-05-15 14:13:35 +02:00
André Bargull
49a4e1e7c8 Fix copy-paste errors in Atomics tests 2025-05-15 11:18:46 +02:00
Richard Gibson
25278a150d
harness: Add a verifyCallableProperty helper (#4468) 2025-05-14 12:08:11 -04:00
Sosuke Suzuki
5e201642db Add tests for rejected %AsyncIteratorPrototype%.@@asyncDispose 2025-05-14 08:37:17 -07:00
Daniel Minor
2e59aad8d1
Move Map.prototype.getOrInsert tests from staging (#4472)
* Move Map.prototype.getOrInsert tests from staging

* Fix esid and remove noStrict

* Add check for map.get(-0) to append-new-values-normalizes-zero-key.js
2025-05-12 13:27:39 -07:00
Seokho Song
cba890eef0 add throw-type-error-before-custom-proto-access.js 2025-04-24 15:32:25 +02:00
brageh01
443f0d2e7f
Temporal: Reorganize calendar and wrong-type tests (#4415)
Changes made to:

- PlainDate
- PlainYearMonth
- ZonedDateTime
- PlainDateTime
- PlainMonthDay

Merged calendar-number.js and calendar-wrong-type.js, due to no special behaviour of number to be tested.

Extracted string tests to calendar-iso-string.js and renamed the file to calendar-invalid-iso-string.js, due to the contents of the file initially testing invalid ISO strings.

Closes #3873
2025-04-23 16:04:15 -07:00
Philip Chimento
c3c318cf11 Temporal: Add coverage for weird PlainMonthDay leap day constrain case
If you have a leap day, such as February 29, and you get input such as
{ monthCode: "M02", day: 30 }, { overflow: "constrain" }, then you want
the day to be constrained to the leap day February 29, not February 28
as the maximum day would be in a common year. Add tests for this case
for each supported calendar.
2025-04-21 10:06:18 -07:00
ExE Boss
5b7101ae71
Add more tests for Object.prototype.[[SetPrototypeOf]] (#4446) 2025-04-17 16:04:35 -07:00
J. S. Choi
7cc98501d3
Add and rename Array.fromAsync thenable rejection test cases 2025-04-14 15:47:05 +00:00
André Bargull
f5bf9fdf2d Allow for implementation-defined Error properties
Various implementations (JSC, V8, SM) define additional properties on
Error instances. Adjust the test case to account for that.
2025-03-24 09:52:09 +01:00
Philip Chimento
7708262a21 Update ESIDs of Temporal.*.prototype properties
These ESIDs were updated to use dots instead of dashes, to be more
consistent with the ESIDs of other properties.
2025-03-14 09:26:47 +01:00
Aurèle
3f10507650 Regenerate character class escape tests 2025-03-13 11:58:44 -07:00
Philip Chimento
e611532c98 Fix final newline linter error 2025-03-12 17:06:01 -07:00
ayuan0828
e0739b76a7 decodeURIComponent test 2025-03-12 17:06:01 -07:00
ayuan0828
b5ce1ae754 Create throws-URIError.js 2025-03-12 17:06:01 -07:00
Tim Chevalier
0c2144e3e6 Temporal: Fix missing close quotation mark in error message 2025-03-12 15:33:09 -07:00
Philip Chimento
84f820258b harness: Remove hidden-constructors harness file
The objects it provides are also available in another harness file,
wellKnownIntrinsicObjects.js. There's no point in duplicating that in the
harness. Rewrite each test that used hidden-constructors.js to use
getWellKnownIntrinsicObject instead.
2025-03-11 18:14:55 -07:00
Luca Casonato
abc22b515e
Add tests for not calling well-known symbols on primitives for string methods (#4404)
* Add tests for not calling WK symbols on primitives for string methods

* clean up tests

* fix info in test files
2025-03-11 17:54:04 -07:00
Seokho Song
f250da9bf4 Add testcases for setUTC* functions return value 2025-03-11 17:04:18 -07:00
Tim Chevalier
3f65b0209d Temporal: Fix error message in test 2025-03-10 14:32:17 -07:00
Brage Hogstad
26db872ca7 Moved generic era and eraYear tests from intl402/Temporal to built-ins/Temporal 2025-02-12 11:36:45 -08:00
yossydev
c23db8061d Update String.fromCodePoint info to align with latest ECMAScript spec 2025-02-12 10:13:55 -08:00
Ron Buckton
b0319e488d Add tests for SuppressedError 2025-02-11 16:38:26 -08:00
Ron Buckton
ae0656d7d4 Test AsyncIterator Symbol.dispose calls return method 2025-02-11 16:25:20 -08:00
Ron Buckton
bdf546c60c Test Iterator Symbol.dispose calls return method 2025-02-11 16:25:20 -08:00
Kevin Gibbons
d4052133d5
add tests for "iterator helpers close receiver on argument validation failure" (#4350)
* add tests for "iterator helpers close receiver on argument validation failure"

* address comments

* avoid re-using Test262Error
2025-02-04 11:32:20 -08:00
Ron Buckton
88d6c18030 Basic constructor and newtarget tests for DisposableStack 2025-01-30 17:14:53 -08:00