Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JSC] Support all rounding modes in Temporal
https://bugs.webkit.org/show_bug.cgi?id=245935 Reviewed by Geoffrey Garen. This patch implements the rest of the rounding modes for Temporal, namely, `expand`, `halfCeil`, `halfFloor`, `halfTrunc`, and `halfEven`. (As a bonus, it also addresses two adjacent spec tweaks related to fractionalSecondDigits and BalanceDuration.) Note: Some tests still fail due to precision loss beyond MAX_SAFE_INTEGER... * JSTests/test262/config.yaml: * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/TemporalDuration.cpp: (JSC::TemporalDuration::balance): (JSC::TemporalDuration::total const): * Source/JavaScriptCore/runtime/TemporalDuration.h: * Source/JavaScriptCore/runtime/TemporalObject.cpp: (JSC::temporalFractionalSecondDigits): (JSC::temporalRoundingMode): (JSC::negateTemporalRoundingMode): (JSC::roundNumberToIncrement): Canonical link: https://commits.webkit.org/255068@main
- Loading branch information