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

LibJS: Implement ECMA-402 String.prototype.toLocale{Lower,Upper}Case

This commit is contained in:
Timothy Flynn 2021-09-05 15:27:11 -04:00 committed by Linus Groh
parent 14086c69e7
commit 207319ecf1
5 changed files with 91 additions and 7 deletions

View file

@ -233,7 +233,7 @@ Vector<String> canonicalize_locale_list(GlobalObject& global_object, Value local
}
// 9.2.2 BestAvailableLocale ( availableLocales, locale ), https://tc39.es/ecma402/#sec-bestavailablelocale
static Optional<String> best_available_locale(StringView const& locale)
Optional<String> best_available_locale(StringView const& locale)
{
// 1. Let candidate be locale.
StringView candidate = locale;