From a13b6a3cb0e9beef9b48fcb22172bca6ce735e9c Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 23 Mar 2023 07:46:38 -0400 Subject: [PATCH] LibJS: Remove ! from AO calls that can't throw from Intl.DateTimeFormat This is an editorial change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/8f9080e --- .../Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp b/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp index 6a1a43dfe5..89525e010a 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp @@ -234,7 +234,7 @@ ThrowCompletionOr initialize_date_time_format(VM& vm, DateTimeF return vm.throw_completion(ErrorType::OptionIsNotValidValue, time_zone, vm.names.timeZone); } - // c. Set timeZone to ! CanonicalizeTimeZoneName(timeZone). + // c. Set timeZone to CanonicalizeTimeZoneName(timeZone). time_zone = MUST_OR_THROW_OOM(Temporal::canonicalize_time_zone_name(vm, time_zone)); }