mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibJS: Implement ECMA-402 String.prototype.toLocale{Lower,Upper}Case
This commit is contained in:
committed by
Linus Groh
parent
14086c69e7
commit
207319ecf1
Notes:
sideshowbarker
2024-07-18 04:36:19 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/207319ecf1d Pull-request: https://github.com/SerenityOS/serenity/pull/9841 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/linusg ✅
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user