瀏覽代碼

LibJS: Update spec comment in balance_duration_relative()

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/665871e
Linus Groh 3 年之前
父節點
當前提交
bdb8fc54f2
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp

+ 1 - 2
Userland/Libraries/LibJS/Runtime/Temporal/Duration.cpp

@@ -748,8 +748,7 @@ ThrowCompletionOr<RelativeBalancedDuration> balance_duration_relative(GlobalObje
             one_year_days = move_result.days;
         }
 
-        // e. Let moveResult be ? MoveRelativeDate(calendar, relativeTo, oneMonth).
-        // FIXME: This should be "Set moveResult to" (spec issue)
+        // e. Set moveResult to ? MoveRelativeDate(calendar, relativeTo, oneMonth).
         move_result = TRY(move_relative_date(global_object, calendar, *relative_to, *one_month));
 
         // f. Set relativeTo to moveResult.[[RelativeTo]].