mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
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
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 19:47:52 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/28ac5a1333d Pull-request: https://github.com/SerenityOS/serenity/pull/12284 Reviewed-by: https://github.com/IdanHo ✅
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user