Skip to content

Commit 6d6e82d

Browse files
committed
Add more specificity to IsValidMonthCodeForCalendarInYear; use "calendar-dependent"
1 parent 0b6d24b commit 6d6e82d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

spec.emu

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,13 @@ contributors: Google, Ecma International
983983
</dl>
984984
<p>It performs the following steps when called:</p>
985985
<emu-alg>
986-
Returns an implementation-and-calendar-defined Boolean as described above.
986+
1. If IsValidMonthCodeForCalendar(_calendar_, _monthCode_) is *false*, then
987+
1. Return *false*.
988+
1. Let _monthCodeParts_ be ParseMonthCode(_monthCode_).
989+
1. If _monthCodeParts_.[[IsLeap]] is *false*, then
990+
1. Return *true*.
991+
1. Assert: _calendar_ is one of *"chinese"*, *"dangi"*, or *"hebrew"*.
992+
1. Return a calendar-dependent Boolean as described above.
987993
</emu-alg>
988994
</emu-clause>
989995

@@ -1004,7 +1010,7 @@ contributors: Google, Ecma International
10041010
</dl>
10051011
<p>It performs the following steps when called:</p>
10061012
<emu-alg>
1007-
Returns an implementation-and-calendar-defined completion as described above.
1013+
Returns a calendar-dependent completion as described above.
10081014
</emu-alg>
10091015
</emu-clause>
10101016

@@ -1024,7 +1030,7 @@ contributors: Google, Ecma International
10241030
</dl>
10251031
<p>It performs the following steps when called:</p>
10261032
<emu-alg>
1027-
Returns an implementation-and-calendar-defined integer as described above.
1033+
Returns a calendar-dependent integer as described above.
10281034
</emu-alg>
10291035
</emu-clause>
10301036

@@ -1043,7 +1049,7 @@ contributors: Google, Ecma International
10431049
</dl>
10441050
<p>It performs the following steps when called:</p>
10451051
<emu-alg>
1046-
Returns an implementation-and-calendar-defined integer as described above.
1052+
Returns a calendar-dependent integer as described above.
10471053
</emu-alg>
10481054
</emu-clause>
10491055

0 commit comments

Comments
 (0)