From 019c4e9bf415d7edd8f4180dcfc75eac20dd4454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 27 Jun 2022 16:55:43 +0200 Subject: [PATCH] Editorial: Add a note that ToPositiveInteger(undefined) throws --- spec/calendar.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/calendar.html b/spec/calendar.html index f35cdeac21..4b1ffbbc91 100644 --- a/spec/calendar.html +++ b/spec/calendar.html @@ -168,6 +168,7 @@

CalendarMonth ( _calendar_, _dateLike_ )

1. Let _result_ be ? Invoke(_calendar_, *"month"*, « _dateLike_ »). 1. Return ? ToPositiveInteger(_result_). + ToPositiveInteger(*undefined*) will throw a *RangeError*. @@ -193,6 +194,7 @@

CalendarDay ( _calendar_, _dateLike_ )

1. Let _result_ be ? Invoke(_calendar_, *"day"*, « _dateLike_ »). 1. Return ? ToPositiveInteger(_result_). + ToPositiveInteger(*undefined*) will throw a *RangeError*.