LibJS: Simplify TemporalRelativeToString

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/d3b2e90
This commit is contained in:
Linus Groh 2021-11-24 18:18:05 +00:00
parent f97c9a5968
commit ad294ff2ee
Notes: sideshowbarker 2024-07-18 00:43:03 +09:00

View file

@ -887,9 +887,7 @@ bool ISO8601Parser::parse_temporal_relative_to_string()
{
// TemporalRelativeToString :
// TemporalDateTimeString
// TemporalZonedDateTimeString
return parse_temporal_date_time_string()
|| parse_temporal_zoned_date_time_string();
return parse_temporal_date_time_string();
}
}