1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibJS: Update spec numbers for the Intl Enumeration proposal

This proposal has been merged into the main ECMA-402 spec. See:
81856b3
This commit is contained in:
Timothy Flynn 2023-04-05 11:32:30 -04:00 committed by Linus Groh
parent 61b540e737
commit a8fce9eec2
Notes: sideshowbarker 2024-07-17 11:30:05 +09:00

View file

@ -79,7 +79,7 @@ JS_DEFINE_NATIVE_FUNCTION(Intl::get_canonical_locales)
return Array::create_from(realm, marked_locale_list);
}
// 1.4.4 AvailableCanonicalTimeZones (), https://tc39.es/proposal-intl-enumeration/#sec-availablecanonicaltimezones
// 6.5.4 AvailableCanonicalTimeZones ( ), https://tc39.es/ecma402/#sec-availablecanonicaltimezones
static ThrowCompletionOr<Vector<StringView>> available_canonical_time_zones(VM& vm)
{
// 1. Let names be a List of all supported Zone and Link names in the IANA Time Zone Database.
@ -108,7 +108,7 @@ static ThrowCompletionOr<Vector<StringView>> available_canonical_time_zones(VM&
return result;
}
// 2.2.2 Intl.supportedValuesOf ( key ), https://tc39.es/proposal-intl-enumeration/#sec-intl.supportedvaluesof
// 8.3.2 Intl.supportedValuesOf ( key ), https://tc39.es/ecma402/#sec-intl.supportedvaluesof
JS_DEFINE_NATIVE_FUNCTION(Intl::supported_values_of)
{
auto& realm = *vm.current_realm();