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
This commit is contained in:
Linus Groh 2021-12-09 23:18:01 +00:00
parent 82efbfcf3d
commit bdb8fc54f2
Notes: sideshowbarker 2024-07-17 23:02:14 +09:00

View File

@ -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]].