Просмотр исходного кода

LibJS: Simplify TemporalRelativeToString

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/d3b2e90
Linus Groh 3 лет назад
Родитель
Сommit
ad294ff2ee
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp

+ 1 - 3
Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp

@@ -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();
 }
 
 }