Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a4eb552518cc22e23282c530a1944dd72162f466
https://github.com/WebKit/WebKit/commit/a4eb552518cc22e23282c530a1944dd72162f466
Author: Keita Nonaka <[email protected]>
Date: 2025-11-26 (Wed, 26 Nov 2025)
Changed paths:
A JSTests/stress/date-two-digit-years.js
M Source/WTF/wtf/DateMath.cpp
Log Message:
-----------
[JSC] Fix Date Constructor Overflow
https://bugs.webkit.org/show_bug.cgi?id=295513
Reviewed by Darin Adler.
When day is not in the range, Date Constructor did not return the correct value.
This patch fixes Date Constructor overflow to align with the behavior from
test262[1].
[1]:
https://github.com/tc39/test262/blob/3e26311d42ad7d971b0a2f6755d083e19c2050d8/test/staging/sm/Date/two-digit-years.js
* JSTests/stress/date-two-digit-years.js: Added.
(shouldBe):
(let.year.of.Array.100.keys):
(let.year.of.Array.1000.keys):
* Source/WTF/wtf/DateMath.cpp:
(WTF::parseDate):
Canonical link: https://commits.webkit.org/303582@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications