Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc5f4aa81ce3e901e9a8314049a86b230bd5159c
      
https://github.com/WebKit/WebKit/commit/bc5f4aa81ce3e901e9a8314049a86b230bd5159c
  Author: Yijia Huang <[email protected]>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M JSTests/stress/temporal-zoned-date-time-with-era-calendar.js
    M Source/JavaScriptCore/runtime/TemporalCalendar.cpp
    M Source/JavaScriptCore/runtime/TemporalCalendar.h
    M Source/JavaScriptCore/runtime/TemporalDuration.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDateTime.cpp
    M Source/JavaScriptCore/runtime/TemporalZonedDateTime.cpp
    M Source/JavaScriptCore/runtime/TemporalZonedDateTimePrototype.cpp
    M Source/JavaScriptCore/runtime/temporal/core/CalendarFields.cpp
    M Source/JavaScriptCore/runtime/temporal/core/CalendarFields.h

  Log Message:
  -----------
  [JSC][Temporal] Consolidate InterpretTemporalDateTimeFields into one 
implementation
https://bugs.webkit.org/show_bug.cgi?id=319531
rdar://182355686

Reviewed by Sosuke Suzuki.

Extract the spec's InterpretTemporalDateTimeFields abstract operation
into JSC::interpretTemporalDateTimeFields and route all four spec
callers through it: PlainDateTime.from, ZonedDateTime.from,
ZonedDateTime.with, and Duration.relativeTo. Prior to this patch each
caller open-coded the three steps (CalendarDateFromFields + RegulateTime
+ CombineISODateAndTimeRecord) inline.

Deletes the legacy TemporalDuration::resolvePlainDateFromFields helper
now that Duration.relativeTo routes through the shared implementation.
Introduces TemporalCore::TimeFieldsIn to mirror CalendarFieldsIn's
optional pattern.

Also restores the month-or-monthCode required-field check that the
pre-refactor callers open-coded — matches CalendarResolveFields for the
ISO branch and NonISOResolveFields for the non-ISO branch.

Tests: temporal-zoned-date-time-with-era-calendar.js
Canonical link: https://commits.webkit.org/317350@main



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

Reply via email to