Bug 303163

Summary: [JSC] Remove redundant `isValidISODate` check in `TemporalCalendar`
Product: WebKit Reporter: Sosuke Suzuki <aosukeke>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sosuke Suzuki
Reported 2025-11-26 22:43:44 PST
The `isValidISODate` check after `regulateISODate` is redundant because: - When overflow is `Reject`, `regulateISODate` already calls `isValidISODate` and returns `std::nullopt` if invalid. - When overflow is `Constrain`, the month and day are clamped to valid ranges, so `isValidISODate` will always return true.
Attachments
Sosuke Suzuki
Comment 1 2025-11-26 22:44:48 PST
EWS
Comment 2 2025-12-03 18:15:30 PST
Committed 303878@main (a1e2020dffa2): <https://commits.webkit.org/303878@main> Reviewed commits have been landed. Closing PR #54505 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-12-03 18:16:12 PST
Note You need to log in before you can comment on or make changes to this bug.