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

  Changed paths:
    M Source/JavaScriptCore/runtime/TemporalCalendar.cpp
    M Source/JavaScriptCore/runtime/TemporalCalendar.h
    M Source/JavaScriptCore/runtime/TemporalDuration.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDate.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDatePrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDateTime.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainMonthDay.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainMonthDayPrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainYearMonth.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainYearMonthPrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalZonedDateTime.cpp
    M Source/JavaScriptCore/runtime/TemporalZonedDateTimePrototype.cpp

  Log Message:
  -----------
  [JSC][Temporal] Extract GetTemporalCalendarIdentifierWithISODefault as a 
shared helper
https://bugs.webkit.org/show_bug.cgi?id=319602
rdar://182431498

Reviewed by Yusuke Suzuki.

Adds JSC::getTemporalCalendarIdentifierWithISODefault matching the spec AO at 
[1],
including step 1 (Temporal internal-slot fast path for PlainDate/PlainDateTime/
PlainMonthDay/PlainYearMonth/ZonedDateTime).

Callers of PrepareCalendarFields now invoke it explicitly at the call site
so each spec step is visible (step 2.d then step 2.e), mirroring the spec's
own two-AO sequence. Drops the CalendarRead template parameter from
readCalendarFieldsFromObject and readZonedDateTimeFieldsFromObject — the
Read branch was doing work that belongs to the caller per spec, and after
this refactor every caller passes an already-resolved calendarId in.

Pure refactoring.

[1] 
https://tc39.es/proposal-temporal/#sec-temporal-gettemporalcalendarslotvaluewithisodefault

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



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

Reply via email to