From a8fce9eec2b5129fad71edbdf271838326543e7f Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 5 Apr 2023 11:32:30 -0400 Subject: [PATCH] LibJS: Update spec numbers for the Intl Enumeration proposal This proposal has been merged into the main ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/81856b3 --- Userland/Libraries/LibJS/Runtime/Intl/Intl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/Intl/Intl.cpp b/Userland/Libraries/LibJS/Runtime/Intl/Intl.cpp index de3ec5e7d30..9f9cf96abdf 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/Intl.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/Intl.cpp @@ -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> 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> 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();