소스 검색

LibJS: Update fallibility of ParseISODateTime in spec comments

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/bc79069
Linus Groh 3 년 전
부모
커밋
28ac5a1333
1개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 6
      Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp

+ 3 - 6
Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp

@@ -1241,8 +1241,7 @@ ThrowCompletionOr<TemporalInstant> parse_temporal_instant_string(GlobalObject& g
         return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidInstantString, iso_string);
     }
 
-    // 3. Let result be ! ParseISODateTime(isoString).
-    // NOTE: !/? confusion is a spec issue. See: https://github.com/tc39/proposal-temporal/pull/2027
+    // 3. Let result be ? ParseISODateTime(isoString).
     auto result = TRY(parse_iso_date_time(global_object, *parse_result));
 
     // 4. Let timeZoneResult be ? ParseTemporalTimeZoneString(isoString).
@@ -1278,8 +1277,7 @@ ThrowCompletionOr<TemporalZonedDateTime> parse_temporal_zoned_date_time_string(G
         return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidZonedDateTimeString, iso_string);
     }
 
-    // 3. Let result be ! ParseISODateTime(isoString).
-    // NOTE: !/? confusion is a spec issue. See: https://github.com/tc39/proposal-temporal/pull/2027
+    // 3. Let result be ? ParseISODateTime(isoString).
     auto result = TRY(parse_iso_date_time(global_object, *parse_result));
 
     // 4. Let timeZoneResult be ? ParseTemporalTimeZoneString(isoString).
@@ -1561,8 +1559,7 @@ ThrowCompletionOr<TemporalZonedDateTime> parse_temporal_relative_to_string(Globa
         return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidRelativeToString, iso_string);
     }
 
-    // 3. Let result be ! ParseISODateTime(isoString).
-    // NOTE: !/? confusion is a spec issue. See: https://github.com/tc39/proposal-temporal/pull/2027
+    // 3. Let result be ? ParseISODateTime(isoString).
     auto result = TRY(parse_iso_date_time(global_object, *parse_result));
 
     bool z;