Skip to content

Commit f47d57d

Browse files
linusgptomato
authored andcommitted
Editorial: Fix duplicate 'Let newRelativeTo' in BalanceDurationRelative
The declaration of newRelativeTo in step 10.b. is still 'in scope', so step 10.j. should use 'Set ... to' instead of 'Let ... be', like the assignment to newRelativeTo in step 10.f.
1 parent 59b1bff commit f47d57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/duration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ <h1>
14011401
1. Set _newRelativeTo_ to _moveResult_.[[RelativeTo]].
14021402
1. Set _oneMonthDays_ to _moveResult_.[[Days]].
14031403
1. Let _dateAdd_ be ? GetMethod(_calendar_, *"dateAdd"*).
1404-
1. Let _newRelativeTo_ be ? CalendarDateAdd(_calendar_, _relativeTo_, _oneYear_, *undefined*, _dateAdd_).
1404+
1. Set _newRelativeTo_ to ? CalendarDateAdd(_calendar_, _relativeTo_, _oneYear_, *undefined*, _dateAdd_).
14051405
1. Let _dateUntil_ be ? GetMethod(_calendar_, *"dateUntil"*).
14061406
1. Let _untilOptions_ be OrdinaryObjectCreate(*null*).
14071407
1. Perform ! CreateDataPropertyOrThrow(_untilOptions_, *"largestUnit"*, *"month"*).

0 commit comments

Comments
 (0)