Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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]: tc39/proposal-intl-duration-format#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
- Loading branch information
1 parent
1caa146
commit 9bcd2c5
Showing
3 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters