1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibJS: Remove hard-coded lists of collation types

Working around not having collation data in the CLDR now handled in the
Unicode generators.
This commit is contained in:
Timothy Flynn 2022-07-14 18:09:10 -04:00 committed by Andreas Kling
parent f8f7015419
commit c657f23e6f
2 changed files with 2 additions and 5 deletions

View file

@ -120,9 +120,7 @@ JS_DEFINE_NATIVE_FUNCTION(Intl::supported_values_of)
// 3. Else if key is "collation", then
else if (key == "collation"sv) {
// a. Let list be ! AvailableCollations( ).
// FIXME: We don't yet parse any collation data, but "default" is allowed. This matches Intl.Locale.prototype.collations.
static constexpr auto collations = AK::Array { "default"sv };
list = collations.span();
list = Unicode::get_available_collation_types();
}
// 4. Else if key is "currency", then
else if (key == "currency"sv) {