From bc9a440f312359d1556da9bc366762fc2c51abb6 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 21 Jan 2023 22:46:40 -0500 Subject: [PATCH] LibJS: Use correct type for NumberFormat's UseGrouping internal slot This was converted to an enumeration for Intl.NumberFormat V3 in commit 33698b961542618e64c6aede5213c3b0624399d0, but the default value was not updated (and it's a bit surprising it compiled at all, given that this is an 'enum class'). --- Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h b/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h index 7295600ef6..253a9e7093 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h +++ b/Userland/Libraries/LibJS/Runtime/Intl/NumberFormat.h @@ -248,7 +248,7 @@ private: Optional m_currency_sign {}; // [[CurrencySign]] Optional m_unit {}; // [[Unit]] Optional<::Locale::Style> m_unit_display {}; // [[UnitDisplay]] - UseGrouping m_use_grouping { false }; // [[UseGrouping]] + UseGrouping m_use_grouping { UseGrouping::False }; // [[UseGrouping]] Notation m_notation { Notation::Invalid }; // [[Notation]] Optional m_compact_display {}; // [[CompactDisplay]] SignDisplay m_sign_display { SignDisplay::Invalid }; // [[SignDisplay]]