Skip to content

Conversation

ptomato
Copy link
Contributor

@ptomato ptomato commented Aug 15, 2025

These tests cover the normative change approved in the July 2025 TC39 plenary. See tc39/proposal-temporal#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.

hubot pushed a commit to v8/v8 that referenced this pull request Aug 21, 2025
This updates to the non-observable changes from
tc39/proposal-temporal#3135

This also makes the changes from to-be-merged spec PR
tc39/proposal-temporal#3130

(these changes are observable)

This passes the tests added in
tc39/test262#4557.

Bug: 401065166
Change-Id: I6a6a6964a2436085a3fa20b3bbb10392f0fe95df
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6851756
Auto-Submit: Manish Goregaokar <[email protected]>
Commit-Queue: Manish Goregaokar <[email protected]>
Reviewed-by: Leszek Swirski <[email protected]>
Cr-Commit-Position: refs/heads/main@{#101978}
These tests cover the normative change approved in the July 2025 TC39
plenary. See tc39/proposal-temporal#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.
@ptomato ptomato merged commit 5048ca6 into tc39:main Aug 21, 2025
11 checks passed
@ptomato ptomato deleted the temporal-3130 branch August 21, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants