mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
LibJS: Simplify return in parse_temporal_date_time_string
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/1f7e486
This commit is contained in:
@@ -1319,11 +1319,8 @@ ThrowCompletionOr<ISODateTime> parse_temporal_date_time_string(GlobalObject& glo
|
||||
return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidDateTimeStringUTCDesignator, iso_string);
|
||||
}
|
||||
|
||||
// 4. Let result be ? ParseISODateTime(isoString).
|
||||
auto result = TRY(parse_iso_date_time(global_object, *parse_result));
|
||||
|
||||
// 5. Return result.
|
||||
return result;
|
||||
// 4. Return ? ParseISODateTime(isoString).
|
||||
return parse_iso_date_time(global_object, *parse_result);
|
||||
}
|
||||
|
||||
// 13.40 ParseTemporalDurationString ( isoString ), https://tc39.es/proposal-temporal/#sec-temporal-parsetemporaldurationstring
|
||||
|
||||
Reference in New Issue
Block a user