Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Remove unnecessary checks for undefined before ToPositiveInteger #2332

Merged
merged 2 commits into from
Jun 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ <h1>CalendarMonth ( _calendar_, _dateLike_ )</h1>
<emu-alg>
1. Assert: Type(_calendar_) is Object.
1. Let _result_ be ? Invoke(_calendar_, *"month"*, « _dateLike_ »).
1. If _result_ is *undefined*, throw a *RangeError* exception.
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 @@ -192,9 +192,9 @@ <h1>CalendarDay ( _calendar_, _dateLike_ )</h1>
<emu-alg>
1. Assert: Type(_calendar_) is Object.
1. Let _result_ be ? Invoke(_calendar_, *"day"*, « _dateLike_ »).
1. If _result_ is *undefined*, throw a *RangeError* exception.
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