Skip to content

Commit

Permalink
Revert "Editorial: Last CreateDateDurationRecords are infallible in U…
Browse files Browse the repository at this point in the history
…nbalanceDateDurationRelative"

This reverts commit 5c59914. It was no
longer correct that these calls to CreateDateDurationRecord were
infallible.

See #2690 (comment)
  • Loading branch information
ptomato committed Feb 13, 2024
1 parent e2f7854 commit 649f2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/duration.html
Original file line number Diff line number Diff line change
Expand Up @@ -1760,12 +1760,12 @@ <h1>
1. Let _yearsMonthsDuration_ be ! CreateTemporalDuration(_years_, _months_, 0, 0, 0, 0, 0, 0, 0, 0).
1. Let _later_ be ? CalendarDateAdd(_calendarRec_, _plainRelativeTo_, _yearsMonthsDuration_).
1. Let _yearsMonthsInDays_ be DaysUntil(_plainRelativeTo_, _later_).
1. Return ! CreateDateDurationRecord(0, 0, _weeks_, _days_ + _yearsMonthsInDays_).
1. Return ? CreateDateDurationRecord(0, 0, _weeks_, _days_ + _yearsMonthsInDays_).
1. NOTE: _largestUnit_ can be any time unit as well as *"day"*.
1. Let _yearsMonthsWeeksDuration_ be ! CreateTemporalDuration(_years_, _months_, _weeks_, 0, 0, 0, 0, 0, 0, 0).
1. Let _later_ be ? CalendarDateAdd(_calendarRec_, _plainRelativeTo_, _yearsMonthsWeeksDuration_).
1. Let _yearsMonthsWeeksInDays_ be DaysUntil(_plainRelativeTo_, _later_).
1. Return ! CreateDateDurationRecord(0, 0, 0, _days_ + _yearsMonthsWeeksInDays_).
1. Return ? CreateDateDurationRecord(0, 0, 0, _days_ + _yearsMonthsWeeksInDays_).
</emu-alg>
</emu-clause>

Expand Down

0 comments on commit 649f2fe

Please sign in to comment.