Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 09917ef55b0f95601817be0ad3100e4ff5044a69
https://github.com/WebKit/WebKit/commit/09917ef55b0f95601817be0ad3100e4ff5044a69
Author: Sosuke Suzuki <[email protected]>
Date: 2026-07-28 (Tue, 28 Jul 2026)
Changed paths:
M Source/JavaScriptCore/runtime/temporal/core/CalendarICUBridge.cpp
Log Message:
-----------
[JSC] Add missing `U_FAILURE(status)` for `actualLunisolarMonthLength`
https://bugs.webkit.org/show_bug.cgi?id=320313
Reviewed by Yusuke Suzuki.
The U_FAILURE(status) check sat after the early return for non-Chinese/Dangi
calendars (i.e. Hebrew), so it never guarded the ucal_getLimit call: on ICU
failure the function returned an engaged optional { 0 } and the callers
clamped the day to 0 under overflow: "constrain" instead of throwing a
RangeError. Check the status right after ucal_getLimit.
* Source/JavaScriptCore/runtime/temporal/core/CalendarICUBridge.cpp:
(JSC::TemporalCore::actualLunisolarMonthLength):
Canonical link: https://commits.webkit.org/318062@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications