Skip to content

[Temporal] Enable all PlainYearMonth test262 tests#56460

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
catamorphism:plainyearmonth-fixes
Jan 15, 2026
Merged

[Temporal] Enable all PlainYearMonth test262 tests#56460
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
catamorphism:plainyearmonth-fixes

Conversation

@catamorphism
Copy link
Contributor

@catamorphism catamorphism commented Jan 12, 2026

d865004

[Temporal] Enable all PlainYearMonth test262 tests
https://bugs.webkit.org/show_bug.cgi?id=305156

Reviewed by Yusuke Suzuki.

Also fix several bugs that were hidden by PlainYearMonth being
skipped in config.yaml:

* Negate rounding mode when calling PlainYearMonth since method
* Fix bug where negative month should be checked before options
* Fix month code checking bug in with when supplied month code differs
  from existing month

* JSTests/test262/config.yaml:
* Source/JavaScriptCore/runtime/ISO8601.cpp:
(JSC::ISO8601::parseDate):
* Source/JavaScriptCore/runtime/TemporalCalendar.cpp:
(JSC::TemporalCalendar::isoDateFromFields):
(JSC::TemporalCalendar::yearMonthFromFields):
* Source/JavaScriptCore/runtime/TemporalPlainDate.cpp:
(JSC::TemporalPlainDate::toYearMonth):
* Source/JavaScriptCore/runtime/TemporalPlainDateTime.cpp:
(JSC::TemporalPlainDateTime::from):
* Source/JavaScriptCore/runtime/TemporalPlainDateTime.h:
* Source/JavaScriptCore/runtime/TemporalPlainDateTimeConstructor.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/TemporalPlainDateTimePrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/TemporalPlainMonthDay.cpp:
(JSC::TemporalPlainMonthDay::from):
* Source/JavaScriptCore/runtime/TemporalPlainMonthDay.h:
* Source/JavaScriptCore/runtime/TemporalPlainMonthDayPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/TemporalPlainYearMonth.cpp:
(JSC::TemporalPlainYearMonth::with):
(JSC::TemporalPlainYearMonth::sinceOrUntil):

Canonical link: https://commits.webkit.org/305624@main

5e9a90b

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ✅ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 api-mac-debug ✅ 🛠 wpe-cairo-libwebrtc
✅ 🛠 🧪 jsc ✅ 🧪 api-ios ✅ 🧪 mac-wk1 ✅ 🛠 gtk
✅ 🛠 🧪 jsc-arm64 ✅ 🛠 vision ✅ 🧪 mac-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-wk2-stress 🛠 playstation
✅ 🛠 🧪 unsafe-merge ✅ 🛠 tv ✅ 🧪 mac-intel-wk2 ✅ 🛠 jsc-armv7
✅ 🛠 tv-sim ✅ 🛠 mac-safer-cpp ✅ 🧪 jsc-armv7-tests
✅ 🛠 watch
✅ 🛠 watch-sim

@catamorphism catamorphism requested a review from a team as a code owner January 12, 2026 20:20
@catamorphism catamorphism self-assigned this Jan 12, 2026
@catamorphism catamorphism added the JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues. label Jan 12, 2026
@catamorphism
Copy link
Contributor Author

This is a resubmit of #56293 , which was reverted.

The changes are:

  • In ISO8601::parseDate, check for an out-of-range year in the special case for YearMonth.
  • In TemporalCalendar::isoDateFromFields, don't assume options is non-null.

@catamorphism catamorphism added the request-merge-queue Request a pull request to be added to merge-queue once ready label Jan 12, 2026
@justinmichaud justinmichaud added merge-queue Applied to send a pull request to merge-queue safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks and removed merge-queue Applied to send a pull request to merge-queue labels Jan 12, 2026
@Ahmad-S792 Ahmad-S792 removed the request-merge-queue Request a pull request to be added to merge-queue once ready label Jan 13, 2026
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 13, 2026
@webkit-ews-buildbot
Copy link
Collaborator

Failed mac-wk2 checks. Please resolve failures and re-apply safe-merge-queue label.

Rejecting #56460 from merge queue.

@webkit-ews-buildbot webkit-ews-buildbot removed the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Jan 13, 2026
@webkit-ews-buildbot
Copy link
Collaborator

Safe-Merge-Queue: Build #80840.

@justinmichaud justinmichaud added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Jan 13, 2026
@catamorphism
Copy link
Contributor Author

Rebased again in the hopes of fixing the mac-wk2 failure.

@justinmichaud justinmichaud added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 15, 2026
https://bugs.webkit.org/show_bug.cgi?id=305156

Reviewed by Yusuke Suzuki.

Also fix several bugs that were hidden by PlainYearMonth being
skipped in config.yaml:

* Negate rounding mode when calling PlainYearMonth since method
* Fix bug where negative month should be checked before options
* Fix month code checking bug in with when supplied month code differs
  from existing month

* JSTests/test262/config.yaml:
* Source/JavaScriptCore/runtime/ISO8601.cpp:
(JSC::ISO8601::parseDate):
* Source/JavaScriptCore/runtime/TemporalCalendar.cpp:
(JSC::TemporalCalendar::isoDateFromFields):
(JSC::TemporalCalendar::yearMonthFromFields):
* Source/JavaScriptCore/runtime/TemporalPlainDate.cpp:
(JSC::TemporalPlainDate::toYearMonth):
* Source/JavaScriptCore/runtime/TemporalPlainDateTime.cpp:
(JSC::TemporalPlainDateTime::from):
* Source/JavaScriptCore/runtime/TemporalPlainDateTime.h:
* Source/JavaScriptCore/runtime/TemporalPlainDateTimeConstructor.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/TemporalPlainDateTimePrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/TemporalPlainMonthDay.cpp:
(JSC::TemporalPlainMonthDay::from):
* Source/JavaScriptCore/runtime/TemporalPlainMonthDay.h:
* Source/JavaScriptCore/runtime/TemporalPlainMonthDayPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/TemporalPlainYearMonth.cpp:
(JSC::TemporalPlainYearMonth::with):
(JSC::TemporalPlainYearMonth::sinceOrUntil):

Canonical link: https://commits.webkit.org/305624@main
@webkit-commit-queue
Copy link
Collaborator

Committed 305624@main (d865004): https://commits.webkit.org/305624@main

Reviewed commits have been landed. Closing PR #56460 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit d865004 into WebKit:main Jan 15, 2026
@webkit-commit-queue webkit-commit-queue removed merge-queue Applied to send a pull request to merge-queue unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing labels Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants