1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:18:11 +00:00

LibJS: Map DurationFormat's list style to "short" when it is "digital"

This is a normative change in the Intl.DurationFormat proposal. See:
7495e32
This commit is contained in:
Timothy Flynn 2022-11-01 09:15:11 -04:00 committed by Linus Groh
parent 84e6833203
commit 4686989582
3 changed files with 9 additions and 9 deletions

View file

@ -510,8 +510,8 @@ Vector<PatternPartition> partition_duration_format_pattern(VM& vm, DurationForma
// 7. If listStyle is "digital", then
if (list_style == DurationFormat::Style::Digital) {
// a. Set listStyle to "narrow".
list_style = DurationFormat::Style::Narrow;
// a. Set listStyle to "short".
list_style = DurationFormat::Style::Short;
}
auto unicode_list_style = ::Locale::style_to_string(static_cast<::Locale::Style>(list_style));