Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c315e02e022f2da98eea211f8e1cd6e506d54764
https://github.com/WebKit/WebKit/commit/c315e02e022f2da98eea211f8e1cd6e506d54764
Author: Yijia Huang <[email protected]>
Date: 2026-05-05 (Tue, 05 May 2026)
Changed paths:
M Source/JavaScriptCore/CMakeLists.txt
M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
M Source/JavaScriptCore/runtime/ISO8601.h
M Source/JavaScriptCore/runtime/TemporalCalendar.h
M Source/JavaScriptCore/runtime/TemporalCalendarConstructor.h
M Source/JavaScriptCore/runtime/TemporalCalendarPrototype.h
M Source/JavaScriptCore/runtime/TemporalDuration.h
M Source/JavaScriptCore/runtime/TemporalDurationConstructor.h
M Source/JavaScriptCore/runtime/TemporalDurationPrototype.h
M Source/JavaScriptCore/runtime/TemporalInstant.h
M Source/JavaScriptCore/runtime/TemporalInstantConstructor.h
M Source/JavaScriptCore/runtime/TemporalInstantPrototype.h
M Source/JavaScriptCore/runtime/TemporalNow.h
M Source/JavaScriptCore/runtime/TemporalObject.h
M Source/JavaScriptCore/runtime/TemporalPlainDate.h
M Source/JavaScriptCore/runtime/TemporalPlainDateConstructor.h
M Source/JavaScriptCore/runtime/TemporalPlainDatePrototype.h
M Source/JavaScriptCore/runtime/TemporalPlainDateTime.h
M Source/JavaScriptCore/runtime/TemporalPlainDateTimeConstructor.h
M Source/JavaScriptCore/runtime/TemporalPlainDateTimePrototype.h
M Source/JavaScriptCore/runtime/TemporalPlainMonthDay.h
M Source/JavaScriptCore/runtime/TemporalPlainMonthDayConstructor.h
M Source/JavaScriptCore/runtime/TemporalPlainMonthDayPrototype.h
M Source/JavaScriptCore/runtime/TemporalPlainTime.h
M Source/JavaScriptCore/runtime/TemporalPlainTimeConstructor.h
M Source/JavaScriptCore/runtime/TemporalPlainTimePrototype.h
M Source/JavaScriptCore/runtime/TemporalPlainYearMonth.h
M Source/JavaScriptCore/runtime/TemporalPlainYearMonthConstructor.h
M Source/JavaScriptCore/runtime/TemporalPlainYearMonthPrototype.h
M Source/JavaScriptCore/runtime/TemporalTimeZone.h
M Source/JavaScriptCore/runtime/TemporalTimeZoneConstructor.h
M Source/JavaScriptCore/runtime/TemporalTimeZonePrototype.h
A Source/JavaScriptCore/runtime/temporal/core/TemporalCoreTypes.h
A Source/JavaScriptCore/runtime/temporal/core/TemporalEnums.h
Log Message:
-----------
[JSC][Temporal] Register Temporal headers as private framework headers and
add shared enum/type headers
https://bugs.webkit.org/show_bug.cgi?id=314046
rdar://176231522
Reviewed by Yusuke Suzuki.
Preparatory infrastructure for the Temporal implementation. No JS
functionality changes; existing tests continue to pass unchanged.
New files:
- runtime/temporal/core/TemporalEnums.h: Centralises all Temporal enum
types (TemporalUnit, TemporalOverflow, TemporalDisambiguation,
TemporalOffsetDisambiguation, RoundingMode, TemporalUnitGroup,
AllowedUnit, Inclusivity, TransitionDirection) currently scattered across
TemporalObject.h and individual type files. Consumed by the temporal/core
algorithm layer added in subsequent patches.
- runtime/temporal/core/TemporalCoreTypes.h: Defines TemporalResult<T>,
TemporalError, rangeError()/typeError() factory helpers,
PossibleEpochNanoseconds, and OffsetBehaviour — the error-propagation
and timezone-candidate types shared across temporal/core.
Build system:
- CMakeLists.txt: Add existing Temporal*.h, ISO8601.h, and new
temporal/core headers to PRIVATE_FRAMEWORK_HEADERS for CMake builds.
- project.pbxproj: Add ATTRIBUTES = (Private,) to existing Temporal*.h
and ISO8601.h Copy Headers phase entries. These were previously
Project-level, which prevents <JavaScriptCore/...> includes from
resolving at build time when headers are consumed by other frameworks.
Header include style:
- Convert all Temporal*.h from "Foo.h" quote-style includes to
<JavaScriptCore/Foo.h> angle-bracket style, matching WebKit's
convention for installed private framework headers (see IntlObject.h,
JSGlobalObject.h). This is required now that the headers are Private.
- TemporalObject.h: Forward-include <JavaScriptCore/TemporalEnums.h>.
Canonical link: https://commits.webkit.org/312617@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications