Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 52738be17296a535153ae4490b75ff54f3a4a8e2
https://github.com/WebKit/WebKit/commit/52738be17296a535153ae4490b75ff54f3a4a8e2
Author: Tim Chevalier <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M JSTests/stress/temporal-duration.js
M JSTests/test262/config.yaml
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/runtime/TemporalDuration.cpp
M Source/JavaScriptCore/runtime/TemporalDuration.h
M Source/JavaScriptCore/runtime/TemporalObject.cpp
M Source/JavaScriptCore/runtime/TemporalObject.h
M Source/JavaScriptCore/runtime/TemporalPlainTime.cpp
Log Message:
-----------
[Temporal] Implement TemporalDuration::round() according to the spec
https://bugs.webkit.org/show_bug.cgi?id=298565
Reviewed by Yusuke Suzuki.
Also reimplement TemporalDuration::toString() according to the spec,
since it depends on round().
This enables some tests for Temporal/Duration/prototype/round and
Temporal/Duration/prototype/toString, as well as Temporal/Duration/from
(which uses toString).
* JSTests/stress/temporal-duration.js:
* JSTests/test262/config.yaml:
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/TemporalDuration.cpp:
(JSC::totalSeconds):
(JSC::totalSubseconds):
(JSC::TemporalDuration::balance):
(JSC::TemporalDuration::round):
(JSC::TemporalDuration::round const):
(JSC::TemporalDuration::toString const):
(JSC::defaultTemporalLargestUnit):
(JSC::TemporalDuration::toString):
(JSC::totalNanoseconds): Deleted.
* Source/JavaScriptCore/runtime/TemporalDuration.h:
* Source/JavaScriptCore/runtime/TemporalObject.cpp:
(JSC::roundNumberToIncrementDouble):
(JSC::roundNumberToIncrement): Deleted.
* Source/JavaScriptCore/runtime/TemporalObject.h:
* Source/JavaScriptCore/runtime/TemporalPlainTime.cpp:
(JSC::TemporalPlainTime::roundTime):
Canonical link: https://commits.webkit.org/301182@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes