소스 검색

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
Timothy Flynn 2 년 전
부모
커밋
a13b6a3cb0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp

@@ -234,7 +234,7 @@ ThrowCompletionOr<DateTimeFormat*> initialize_date_time_format(VM& vm, DateTimeF
             return vm.throw_completion<RangeError>(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));
     }