LibJS: Fix uninitialized member variable in DurationFormat

Reported-by: PVS Studio
This commit is contained in:
Brian Gianforcaro 2022-12-29 18:35:44 -08:00 committed by Andreas Kling
parent bfa890251c
commit bffc29ae34

View file

@ -163,7 +163,7 @@ private:
DeprecatedString m_locale; // [[Locale]]
DeprecatedString m_data_locale; // [[DataLocale]]
DeprecatedString m_numbering_system; // [[NumberingSystem]]
Style m_style; // [[Style]]
Style m_style { Style::Long }; // [[Style]]
ValueStyle m_years_style { ValueStyle::Long }; // [[YearsStyle]]
Display m_years_display { Display::Auto }; // [[YearsDisplay]]
ValueStyle m_months_style { ValueStyle::Long }; // [[MonthsStyle]]