Ben Noordhuis
409001b61b
Make iterator sequencing test more explicit
...
The next() method is not supposed to get called. Per discussion here:
https://github.com/tc39/test262/pull/4326#discussion_r2371763680
2025-09-23 16:25:54 -07:00
Linus Groh
e0d8f66a2b
Add missing include to WeakMap.prototype.getOrInsertComputed() test
2025-09-18 13:35:51 -07:00
Philip Chimento
af3d908437
Temporal: Add tests covering one operand of ZonedDateTime difference at extreme
...
These tests cover the case where the ZonedDateTime since() or until()
methods are called with either the receiver or the argument being a
ZonedDateTime instance at either the earliest or latest end of the
supported range.
2025-09-16 10:42:10 +02:00
Philip Chimento
35b3fc74ab
Revert "fix another test now that we don't access the IteratorResult value"
...
This reverts commit 71794b138844536a36b341700f88ee91c5754431.
Follow up from #4523 , missed reverting this commit.
Closes : #4581
2025-09-16 10:17:18 +02:00
Jonas Haukenes
55e8077819
Added missing feature; symbols-as-weakmap-keys
2025-09-15 11:03:07 -07:00
Trevor Florence
0b02980322
Add additional tests for copy by array features ( #4576 )
...
Addresses testing gaps identified in #4575
2025-09-15 10:55:13 -07:00
Jonas Haukenes
daa4186be4
Removed typeof from log message.
2025-09-15 14:55:44 +02:00
Jonas Haukenes
557b748bff
Modifed the test to verify that callbackfn is not called if the key cannot be held weakly.
2025-09-15 14:55:44 +02:00
Trevor Florence
a5e69a1534
Remove unnecessary call to compareArray in this-value-boolean.js
...
This assertion throws before `compareArray` is called. In addition, `compareArray` takes two parameters, not one.
It's unclear to me why it was added in the first place.
2025-09-10 08:50:24 -07:00
Richard Gibson
3fd4ec27f1
[immutable-arraybuffer] Changes to existing ArrayBuffer.prototype properties ( #4540 )
2025-08-27 19:23:40 -04:00
Ms2ger
6f74a55277
Fix c/p errors in String#{is,to}WellFormed tests
2025-08-27 12:15:53 +02:00
Richard Gibson
c185485452
[immutable-arraybuffer] DataView.prototype.set$Type
2025-08-25 15:24:20 -07:00
Philip Chimento
04eaeb9908
Temporal: Coverage for blank durations
...
Many methods did not test what happened when an input or return value
was a blank (all fields 0) duration. This adds coverage for those code
paths.
2025-08-25 11:56:33 +02:00
Michael Ficarra
b947715fdd
update Iterator Sequencing tests to reflect May 2025 plenary updates
2025-08-22 16:06:55 +02:00
Philip Chimento
5048ca6383
Temporal: Add tests for observable order of options get and cast
...
These tests cover the normative change approved in the July 2025 TC39
plenary. See https://github.com/tc39/proposal-temporal/pull/3130 .
All properties of user-passed options objects should be read and cast
before any "algorithmic validation" is done.
This is a lot of tests, that cover every entry point where an options
object is passed in, where subsequently an exception can be thrown or user
code can be called.
However, the normative change only affects 10 of these tests:
- Instant.p.since,until,toString
- PlainDate.p.since,until
- PlainTime.p.since,until
- PlainYearMonth.p.since,until
- ZonedDateTime.p.toString
The other 35 tests simply close a gap in coverage.
2025-08-21 12:01:52 -07:00
Philip Chimento
1588705cc5
Temporal: Add coverage for BubbleRelativeDuration called with time unit
...
See: tc39/proposal-temporal#3121
A type assertion in the spec was incorrect, but the assertion wasn't hit
in the Firefox implementation in any test262 test. These three tests add
coverage for all the paths that would have hit that assertion.
2025-08-20 18:02:05 +02:00
Daniel Minor
d0cb9f80f7
Add symbols-as-weakmap-keys to features
2025-08-19 17:21:01 +02:00
Richard Gibson
7a2273abd2
Fix typos ( #4552 )
...
Ref #4550
2025-07-31 12:07:48 -04:00
Richard Gibson
4868f0f66c
[TypedArray.prototype.copyWithin] Cover overlapping source/destination ranges
...
Ref https://github.com/tc39/ecma262/pull/3619
Ref https://github.com/tc39/ecma262/issues/3618
2025-07-29 11:04:58 +02:00
Richard Gibson
e5731d6fa7
[TypedArray.prototype.copyWithin] Refactor coerced-target-start-end-shrink.js
2025-07-29 11:04:58 +02:00
Daniel Minor
6a73fa8f11
Move WeakMap.prototype.getOrInsertComputed tests from staging to built-ins
2025-06-09 09:45:43 -04:00
Timothy Flynn
f0dc15c6c7
Add missing include to Uint8Array/fromBase64/last-chunk-invalid.js
2025-07-08 17:51:33 +02:00
Nikita Skovoroda
374c61b8c1
add tests for invalid Uint8Array.fromBase64 chunks
2025-07-08 15:44:25 +02:00
André Bargull
c65e2e1107
Move AggregateError and SuppressedError
...
Neither `AggregateError` nor `SuppressedError` are NativeErrors.
2025-07-07 15:50:31 +02:00
Linus Groh
dc40377cb4
Fix two leftover uses of Temporal.ZonedDateTime.prototype.timeZone
2025-07-07 14:44:08 +02:00
Ms2ger
68a817d713
Verify that Duration#with() doesn't accept duration strings
...
Also fix the description and put the string tests together.
2025-07-02 07:57:20 -07:00
Manish Goregaokar
749a6f9509
Move array/function Duration.with tests to the missing-property test
2025-07-01 15:13:52 -07:00
André Bargull
a073f479f8
Add test case for passing canonical key in getOrInsertComputed
2025-06-19 15:01:24 +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