mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibJS: Fix typos in Intl.ListFormat comments
This commit is contained in:
parent
db0a48d34c
commit
2ebafe000a
Notes:
sideshowbarker
2024-07-18 04:25:23 +09:00
Author: https://github.com/trflynn89
Commit: 2ebafe000a
Pull-request: https://github.com/SerenityOS/serenity/pull/9896
Reviewed-by: https://github.com/linusg ✅
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ JS_DEFINE_NATIVE_FUNCTION(ListFormatConstructor::supported_locales_of)
|
||||||
auto locales = vm.argument(0);
|
auto locales = vm.argument(0);
|
||||||
auto options = vm.argument(1);
|
auto options = vm.argument(1);
|
||||||
|
|
||||||
// 1. Let availableLocales be %DisplayNames%.[[AvailableLocales]].
|
// 1. Let availableLocales be %ListFormat%.[[AvailableLocales]].
|
||||||
|
|
||||||
// 2. Let requestedLocales be ? CanonicalizeLocaleList(locales).
|
// 2. Let requestedLocales be ? CanonicalizeLocaleList(locales).
|
||||||
auto requested_locales = canonicalize_locale_list(global_object, locales);
|
auto requested_locales = canonicalize_locale_list(global_object, locales);
|
||||||
|
|
|
@ -345,7 +345,7 @@ JS_DEFINE_NATIVE_FUNCTION(ListFormatPrototype::format_to_parts)
|
||||||
return format_list_to_parts(global_object, *list_format, string_list);
|
return format_list_to_parts(global_object, *list_format, string_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3.4.5 Intl.ListFormat.prototype.resolvedOptions ( ), https://tc39.es/ecma402/#sec-Intl.ListFormat.prototype.resolvedoptions
|
// 13.4.5 Intl.ListFormat.prototype.resolvedOptions ( ), https://tc39.es/ecma402/#sec-Intl.ListFormat.prototype.resolvedoptions
|
||||||
JS_DEFINE_NATIVE_FUNCTION(ListFormatPrototype::resolved_options)
|
JS_DEFINE_NATIVE_FUNCTION(ListFormatPrototype::resolved_options)
|
||||||
{
|
{
|
||||||
// 1. Let lf be the this value.
|
// 1. Let lf be the this value.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue