Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9b21b88466cfab82d46e76e545109ed0e1bf0e78
      
https://github.com/WebKit/WebKit/commit/9b21b88466cfab82d46e76e545109ed0e1bf0e78
  Author: Tim Chevalier <[email protected]>
  Date:   2025-10-31 (Fri, 31 Oct 2025)

  Changed paths:
    M JSTests/stress/temporal-plaindate.js
    M Source/JavaScriptCore/runtime/TemporalCalendar.cpp

  Log Message:
  -----------
  [Temporal] Bounds-check year in balanceISODate()
https://bugs.webkit.org/show_bug.cgi?id=301659

Reviewed by Yusuke Suzuki and Sosuke Suzuki.

balanceISODate() wasn't checking for the invalid-year case, which
caused it in some cases to turn an invalid date into a valid one
(e.g. by adding months).

* JSTests/stress/temporal-plaindate.js:
(shouldBe):
* Source/JavaScriptCore/runtime/TemporalCalendar.cpp:
(JSC::TemporalCalendar::balanceISODate):

Canonical link: https://commits.webkit.org/302413@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to