Skip to content

Commit

Permalink
Editorial: Remove call to ToPositveInteger after CalendarDaysInMonth
Browse files Browse the repository at this point in the history
`CalendarDaysInMonth` already calls `ToPositveInteger`.
  • Loading branch information
anba committed Jun 27, 2022
1 parent 3f5688f commit 7ed8abb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/plainyearmonth.html
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,7 @@ <h1>
1. Let _fields_ be ? PrepareTemporalFields(_yearMonth_, _fieldNames_, «»).
1. Set _sign_ to ! DurationSign(_duration_.[[Years]], _duration_.[[Months]], _duration_.[[Weeks]], _balanceResult_.[[Days]], 0, 0, 0, 0, 0, 0).
1. If _sign_ &lt; 0, then
1. Let _dayFromCalendar_ be ? CalendarDaysInMonth(_calendar_, _yearMonth_).
1. Let _day_ be ? ToPositiveInteger(_dayFromCalendar_).
1. Let _day_ be ? CalendarDaysInMonth(_calendar_, _yearMonth_).
1. Else,
1. Let _day_ be 1.
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"day"*, 𝔽(_day_)).
Expand Down

0 comments on commit 7ed8abb

Please sign in to comment.