LibJS: Implement Intl.Locale.prototype.variants

This is a normative change in the ECMA-402 spec. See:
e8c995a
This commit is contained in:
Timothy Flynn 2025-06-04 10:20:10 -04:00 committed by Tim Flynn
commit 128675770c
Notes: github-actions[bot] 2025-06-04 21:12:35 +00:00
7 changed files with 123 additions and 7 deletions

View file

@ -91,6 +91,8 @@ struct WeekInfo {
Vector<u8> weekend; // [[Weekend]]
};
Optional<String> get_locale_variants(Unicode::LocaleID const&);
GC::Ref<Array> calendars_of_locale(VM&, Locale const&);
GC::Ref<Array> collations_of_locale(VM&, Locale const& locale);
GC::Ref<Array> hour_cycles_of_locale(VM&, Locale const& locale);