RESOLVED FIXED301659
Temporal: Out-of-range date handled incorrectly in add()
https://bugs.webkit.org/show_bug.cgi?id=301659
Summary Temporal: Out-of-range date handled incorrectly in add()
Tim Chevalier
Reported 2025-10-29 14:41:48 PDT
``` Temporal.PlainDate.from('+275760-01-01').add(Temporal.Duration.from('P5432M5432W')) ``` results in: ``` -271718-10-10 ``` but this should throw a RangeError, since 275760 is the maximum year and we are adding more than 12 months.
Attachments
Tim Chevalier
Comment 1 2025-10-29 14:46:51 PDT
EWS
Comment 2 2025-10-31 16:26:00 PDT
Committed 302413@main (9b21b88466cf): <https://commits.webkit.org/302413@main> Reviewed commits have been landed. Closing PR #53168 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-10-31 16:27:11 PDT
Note You need to log in before you can comment on or make changes to this bug.