mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
LibJS: Update fallibility of ParseISODateTime in spec comments
This is an editorial change in the Temporal spec.
See: bc79069
This commit is contained in:
parent
6df246091b
commit
28ac5a1333
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue