Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1644afaa9af7533403b79fdc8cbf6949dfa455a0
https://github.com/WebKit/WebKit/commit/1644afaa9af7533403b79fdc8cbf6949dfa455a0
Author: Tim Chevalier <[email protected]>
Date: 2025-12-02 (Tue, 02 Dec 2025)
Changed paths:
A JSTests/stress/temporal-plainyearmonth.js
M JSTests/test262/config.yaml
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/CMakeLists.txt
M Source/JavaScriptCore/DerivedSources.make
M Source/JavaScriptCore/Sources.txt
M Source/JavaScriptCore/runtime/ISO8601.h
M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
M Source/JavaScriptCore/runtime/JSGlobalObject.h
M Source/JavaScriptCore/runtime/TemporalCalendar.cpp
M Source/JavaScriptCore/runtime/TemporalObject.cpp
A Source/JavaScriptCore/runtime/TemporalPlainYearMonth.cpp
A Source/JavaScriptCore/runtime/TemporalPlainYearMonth.h
A Source/JavaScriptCore/runtime/TemporalPlainYearMonthConstructor.cpp
A Source/JavaScriptCore/runtime/TemporalPlainYearMonthConstructor.h
A Source/JavaScriptCore/runtime/TemporalPlainYearMonthPrototype.cpp
A Source/JavaScriptCore/runtime/TemporalPlainYearMonthPrototype.h
Log Message:
-----------
[Temporal] Add PlainYearMonth type
https://bugs.webkit.org/show_bug.cgi?id=303245
Reviewed by Yusuke Suzuki.
Implement basic support for PlainYearMonth, without its methods.
Test: JSTests/stress/temporal-plainyearmonth.js
* JSTests/stress/temporal-plainyearmonth.js: Added.
(shouldBe):
(shouldThrow):
(const.yearMonth.new.Temporal.PlainYearMonth):
* JSTests/test262/config.yaml:
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/CMakeLists.txt:
* Source/JavaScriptCore/DerivedSources.make:
* Source/JavaScriptCore/Sources.txt:
* Source/JavaScriptCore/runtime/ISO8601.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildrenImpl):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::plainYearMonthStructure):
* Source/JavaScriptCore/runtime/TemporalCalendar.cpp:
(JSC::TemporalCalendar::isoDateFromFields):
(JSC::TemporalCalendar::isoDateAdd):
(JSC::TemporalCalendar::calendarDateUntil):
* Source/JavaScriptCore/runtime/TemporalObject.cpp:
(JSC::createPlainYearMonthConstructor):
* Source/JavaScriptCore/runtime/TemporalPlainYearMonth.cpp: Added.
(JSC::TemporalPlainYearMonth::create):
(JSC::TemporalPlainYearMonth::createStructure):
(JSC::TemporalPlainYearMonth::TemporalPlainYearMonth):
(JSC::TemporalPlainYearMonth::finishCreation):
(JSC::TemporalPlainYearMonth::visitChildrenImpl):
(JSC::TemporalPlainYearMonth::tryCreateIfValid):
(JSC::TemporalPlainYearMonth::monthCode const):
* Source/JavaScriptCore/runtime/TemporalPlainYearMonth.h: Added.
* Source/JavaScriptCore/runtime/TemporalPlainYearMonthConstructor.cpp: Added.
(JSC::TemporalPlainYearMonthConstructor::create):
(JSC::TemporalPlainYearMonthConstructor::createStructure):
(JSC::TemporalPlainYearMonthConstructor::TemporalPlainYearMonthConstructor):
(JSC::TemporalPlainYearMonthConstructor::finishCreation):
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/TemporalPlainYearMonthConstructor.h: Added.
* Source/JavaScriptCore/runtime/TemporalPlainYearMonthPrototype.cpp: Added.
(JSC::TemporalPlainYearMonthPrototype::create):
(JSC::TemporalPlainYearMonthPrototype::createStructure):
(JSC::TemporalPlainYearMonthPrototype::TemporalPlainYearMonthPrototype):
(JSC::TemporalPlainYearMonthPrototype::finishCreation):
(JSC::JSC_DEFINE_CUSTOM_GETTER):
* Source/JavaScriptCore/runtime/TemporalPlainYearMonthPrototype.h: Added.
Canonical link: https://commits.webkit.org/303780@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications