Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f9f65c7ff4f625567d7010206419ed4503ed379d
https://github.com/WebKit/WebKit/commit/f9f65c7ff4f625567d7010206419ed4503ed379d
Author: Yijia Huang <[email protected]>
Date: 2026-07-11 (Sat, 11 Jul 2026)
Changed paths:
A JSTests/stress/temporal-now.js
M JSTests/stress/temporal-plain-month-day.js
M Source/JavaScriptCore/API/tests/TemporalCoreTest.cpp
M Source/JavaScriptCore/runtime/ISO8601.cpp
M Source/JavaScriptCore/runtime/ISO8601.h
M Source/JavaScriptCore/runtime/TemporalDuration.cpp
M Source/JavaScriptCore/runtime/TemporalNow.cpp
M Source/JavaScriptCore/runtime/TemporalPlainDate.cpp
M Source/JavaScriptCore/runtime/TemporalPlainDateTime.cpp
M Source/JavaScriptCore/runtime/TemporalPlainTime.cpp
M Source/JavaScriptCore/runtime/TemporalZonedDateTime.cpp
M Source/JavaScriptCore/runtime/TemporalZonedDateTime.h
M Source/JavaScriptCore/runtime/TemporalZonedDateTimePrototype.cpp
M Source/JavaScriptCore/runtime/temporal/core/CalendarFields.cpp
M Source/JavaScriptCore/runtime/temporal/core/DurationArithmetic.cpp
M Source/JavaScriptCore/runtime/temporal/core/TimeZoneICUBridge.cpp
M Source/JavaScriptCore/runtime/temporal/core/TimeZoneICUBridge.h
M Source/JavaScriptCore/runtime/temporal/core/ZonedDateTimeCore.cpp
Log Message:
-----------
[JSC][Temporal] Deduplicate GetISODateTimeFor and align with temporal_rs
rdar://181926853
https://bugs.webkit.org/show_bug.cgi?id=319109
Reviewed by Yusuke Suzuki.
Add TemporalCore::getISODateTimeFor as the single spec-AO impl; five inline
sites now delegate to it. Introduce ISO8601::PlainDateTime as the value-return
type; TemporalZonedDateTime::getLocalDateAndTime renamed to getLocalDateTime
and returns ISO8601::PlainDateTime by value.
Port exactTimeToLocalDateAndTime to temporal_rs's IsoDateTime::from_epoch_nanos
via new balanceIsoTime and balanceIsoDate helpers. Offset is applied at ns
precision (fixes latent sub-ms truncation).
Refactor TemporalNow: extract systemDateTime; each plainXxxISO factory mirrors
the spec's 2-step form.
Tests: JSTests/stress/temporal-now.js
Source/JavaScriptCore/API/tests/TemporalCoreTest.cpp
Canonical link: https://commits.webkit.org/316969@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications