mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 21:00:06 +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: https://github.com/tc39/proposal-intl-duration-format/commit/7495e32
This commit is contained in:
committed by
Linus Groh
parent
84e6833203
commit
4686989582
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user