mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibJS: Ensure relevant extension keys are included in ICU locale data
This is a normative change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/7508197 In our implementation, we don't have the affected AOs directly, as we delegate to ICU. So instead, we must ensure we provide ICU a locale with the relevant extension keys present.
This commit is contained in:
Notes:
github-actions[bot]
2025-03-18 15:48:22 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/00d00b84d36 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3980
@@ -38,6 +38,9 @@ public:
|
||||
String const& locale() const { return m_locale; }
|
||||
void set_locale(String locale) { m_locale = move(locale); }
|
||||
|
||||
String const& icu_locale() const { return m_icu_locale; }
|
||||
void set_icu_locale(String icu_locale) { m_icu_locale = move(icu_locale); }
|
||||
|
||||
String const& calendar() const { return m_calendar; }
|
||||
void set_calendar(String calendar) { m_calendar = move(calendar); }
|
||||
|
||||
@@ -107,6 +110,7 @@ private:
|
||||
GC::Ptr<NativeFunction> m_bound_format; // [[BoundFormat]]
|
||||
|
||||
// Non-standard. Stores the ICU date-time formatters for the Intl object's formatting options.
|
||||
String m_icu_locale;
|
||||
OwnPtr<Unicode::DateTimeFormat> m_formatter;
|
||||
OwnPtr<Unicode::DateTimeFormat> m_temporal_plain_date_formatter;
|
||||
OwnPtr<Unicode::DateTimeFormat> m_temporal_plain_year_month_formatter;
|
||||
|
||||
Reference in New Issue
Block a user