瀏覽代碼

LibJS: Simplify TemporalRelativeToString

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/d3b2e90
Linus Groh 3 年之前
父節點
當前提交
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();
 }
 
 }