Browse Source

LibJS: Simplify TemporalRelativeToString

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/d3b2e90
Linus Groh 3 năm trước cách đây
mục cha
commit
ad294ff2ee
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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();
 }
 
 }