Skip to content

Commit

Permalink
Editorial: Add a note that ToPositiveInteger(undefined) throws
Browse files Browse the repository at this point in the history
  • Loading branch information
anba committed Jun 27, 2022
1 parent c2b0b69 commit 019c4e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ <h1>CalendarMonth ( _calendar_, _dateLike_ )</h1>
1. Let _result_ be ? Invoke(_calendar_, *"month"*, « _dateLike_ »).
1. Return ? ToPositiveInteger(_result_).
</emu-alg>
<emu-note>ToPositiveInteger(*undefined*) will throw a *RangeError*.</emu-note>
</emu-clause>

<emu-clause id="sec-temporal-calendarmonthcode" aoid="CalendarMonthCode">
Expand All @@ -193,6 +194,7 @@ <h1>CalendarDay ( _calendar_, _dateLike_ )</h1>
1. Let _result_ be ? Invoke(_calendar_, *"day"*, « _dateLike_ »).
1. Return ? ToPositiveInteger(_result_).
</emu-alg>
<emu-note>ToPositiveInteger(*undefined*) will throw a *RangeError*.</emu-note>
</emu-clause>

<emu-clause id="sec-temporal-calendardayofweek" aoid="CalendarDayOfWeek">
Expand Down

0 comments on commit 019c4e9

Please sign in to comment.