Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6aaccf24c3d5771482f1f8d763b89d1bffd01f27
https://github.com/WebKit/WebKit/commit/6aaccf24c3d5771482f1f8d763b89d1bffd01f27
Author: Ithril <[email protected]>
Date: 2026-07-20 (Mon, 20 Jul 2026)
Changed paths:
M JSTests/stress/temporal-calendar-icu-bridge-non-iso.js
M Source/JavaScriptCore/runtime/temporal/core/CalendarICUBridge.cpp
Log Message:
-----------
[JSC][Temporal] Fix Ethioaa arithmetic year
https://bugs.webkit.org/show_bug.cgi?id=319785
Reviewed by Yijia Huang.
UCAL_YEAR is the calendar-native field for Ethioaa's single AA era and matches
Temporal's arithmetic year. Older ICU versions expose an Amete Mihret-relative
UCAL_EXTENDED_YEAR, while newer versions may make the fields equal after
ICU-23167. Use UCAL_YEAR consistently when converting, reading, setting, and
validating Ethioaa years so the behavior is correct with older ICU and
compatible with newer ICU.
Test: JSTests/stress/temporal-calendar-icu-bridge-non-iso.js
* JSTests/stress/temporal-calendar-icu-bridge-non-iso.js:
- Add version-independent arithmetic-year round-trip and consistency coverage
for Ethioaa.
* Source/JavaScriptCore/runtime/temporal/core/CalendarICUBridge.cpp:
(JSC::Temporal::isoToCalendarFields):
(JSC::Temporal::calendarYear):
(JSC::Temporal::calendarDateFromFields):
- Use calendar-native UCAL_YEAR for Ethioaa arithmetic-year operations.
Canonical link: https://commits.webkit.org/317552@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications