From 7ed8abb69952ea588d820f9d9f7e514bbda0a131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Thu, 9 Jun 2022 11:18:42 +0200 Subject: [PATCH] Editorial: Remove call to ToPositveInteger after CalendarDaysInMonth `CalendarDaysInMonth` already calls `ToPositveInteger`. --- spec/plainyearmonth.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/plainyearmonth.html b/spec/plainyearmonth.html index d34f5ee67e..61d8ebc285 100644 --- a/spec/plainyearmonth.html +++ b/spec/plainyearmonth.html @@ -652,8 +652,7 @@

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_ < 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_)).