Skip to content

Commit 3e6cd50

Browse files
Ms2gerptomato
authored andcommitted
Editorial: Clarify Infinity handling in PlainMonthDay constructor.
1 parent d904b4b commit 3e6cd50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/plainmonthday.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const ObjectCreate = Object.create;
77

88
export class PlainMonthDay {
99
constructor(isoMonth, isoDay, calendar = ES.GetISO8601Calendar(), referenceISOYear = 1972) {
10-
isoMonth = ES.ToInteger(isoMonth);
11-
isoDay = ES.ToInteger(isoDay);
10+
isoMonth = ES.ToFiniteInteger(isoMonth);
11+
isoDay = ES.ToFiniteInteger(isoDay);
1212
calendar = ES.ToTemporalCalendar(calendar);
13-
referenceISOYear = ES.ToInteger(referenceISOYear);
13+
referenceISOYear = ES.ToFiniteInteger(referenceISOYear);
1414

1515
// Note: if the arguments are not passed, ToInteger(undefined) will have returned 0, which will
1616
// be rejected by RejectISODate in CreateTemporalMonthDaySlots. This

0 commit comments

Comments
 (0)