Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1375d28c26b39005f5ddbfa23087a59e120c1673
https://github.com/WebKit/WebKit/commit/1375d28c26b39005f5ddbfa23087a59e120c1673
Author: Yijia Huang <[email protected]>
Date: 2026-08-13 (Thu, 13 Aug 2026)
Changed paths:
M Source/JavaScriptCore/runtime/temporal/core/CalendarFields.cpp
M Source/JavaScriptCore/runtime/temporal/core/CalendarICUBridge.cpp
Log Message:
-----------
[JSC][Temporal] Give CalendarMonthDayToISOReferenceDate and
NonISOMonthDayToISOReferenceDate their own functions
https://bugs.webkit.org/show_bug.cgi?id=321661
rdar://184788558
Reviewed by Yusuke Suzuki.
monthDayFromFields was one function with hand-written ISO and non-ISO branches,
each re-deriving the
month/day clamp and reference-year logic independently. Split it so each spec
AO has its own
function (ecmaReferenceYearWithRegularFallback,
nonISOMonthDayToISOReferenceDate,
monthDayToISOReferenceDate), delegating to nonISOCalendarDateToISO instead of
re-deriving its logic
by hand, and drops the ISO path's now-unnecessary leap/non-leap proxy-year
substitution.
Also unifies isoToCalendarFields's roc/buddhist/japanese handling so japanese
stops opening ICU only
to discard every field it reads, and gives nonISOCalendarDateToISO an
effectiveMonth fallback for
its one caller that now supplies a monthCode with no ordinal.
No intended behavior change.
Canonical link: https://commits.webkit.org/319104@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications