Skip to content

Commit c1f7bd5

Browse files
committed
Editorial: ParseMonthCode of a month code is infallible
h/t Anba Closes: #3180
1 parent 9110854 commit c1f7bd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/calendar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,8 @@ <h1>
12501250
1. If _monthCode_ is ~unset~, then
12511251
1. If _month_ is ~unset~, throw a *TypeError* exception.
12521252
1. Return ~unused~.
1253-
1. Assert: _monthCode_ is a String.
1254-
1. Let _parsedMonthCode_ be ? ParseMonthCode(_monthCode_).
1253+
1. Assert: _monthCode_ is a month code.
1254+
1. Let _parsedMonthCode_ be ! ParseMonthCode(_monthCode_).
12551255
1. If _parsedMonthCode_.[[IsLeapMonth]] is *true*, throw a *RangeError* exception.
12561256
1. If _parsedMonthCode_.[[MonthNumber]] > 12, throw a *RangeError* exception.
12571257
1. If _month_ is not ~unset~ and _month__parsedMonthCode_.[[MonthNumber]], throw a *RangeError* exception.

0 commit comments

Comments
 (0)