Browse Source

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 years ago
parent
commit
bdb8fc54f2
1 changed files with 1 additions and 2 deletions
  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;
             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));
         move_result = TRY(move_relative_date(global_object, calendar, *relative_to, *one_month));
 
 
         // f. Set relativeTo to moveResult.[[RelativeTo]].
         // f. Set relativeTo to moveResult.[[RelativeTo]].