[webkit-changes] [WebKit/WebKit] 9bcd2c: [JSC] Use "short" for "digital" style in Intl.Dura...
Yusuke Suzuki
noreply at github.com
Thu Oct 6 23:47:08 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9bcd2c5685fd27553b1edf35846aa523c42b204e
https://github.com/WebKit/WebKit/commit/9bcd2c5685fd27553b1edf35846aa523c42b204e
Author: Yusuke Suzuki <yusukesuzuki at slowstart.org>
Date: 2022-10-06 (Thu, 06 Oct 2022)
Changed paths:
M JSTests/stress/intl-durationformat-digital.js
M JSTests/stress/intl-durationformat-format-to-parts.js
M Source/JavaScriptCore/runtime/IntlDurationFormat.cpp
Log Message:
-----------
[JSC] Use "short" for "digital" style in Intl.DurationFormat
https://bugs.webkit.org/show_bug.cgi?id=246165
rdar://100860476
Reviewed by Mark Lam.
In the last ECMA 402 meeting, we agreed that default style of Intl.DurationFormat should be "short",
but the spec was not updated for "digital". It was a spec bug[1]. We should fix our implementation.
[1]: https://github.com/tc39/proposal-intl-duration-format/pull/127
* JSTests/stress/intl-durationformat-digital.js:
(Intl.DurationFormat.shouldBeOneOf.fmt.format):
(Intl.DurationFormat.shouldBeOneOf):
* JSTests/stress/intl-durationformat-format-to-parts.js:
(Intl.DurationFormat.shouldBe.JSON.stringify.fmt.formatToParts):
* Source/JavaScriptCore/runtime/IntlDurationFormat.cpp:
(JSC::IntlDurationFormat::initializeDurationFormat):
Canonical link: https://commits.webkit.org/255255@main
More information about the webkit-changes
mailing list