Skip to content

Commit f54148f

Browse files
committed
Change unqualified _month_ to _arithmeticalMonth_
1 parent 6abbe6e commit f54148f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

spec.emu

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,19 +1010,19 @@ contributors: Google, Ecma International
10101010
CalendarDateArithmeticalToISO (
10111011
_calendar_: a calendar type that is not *"iso8601"*,
10121012
_year_: an integer,
1013-
_month_: an integer,
1013+
_arithmeticalMonth_: an integer,
10141014
_day_: an integer,
10151015
): either a normal completion containing an ISO Date Record or a throw completion
10161016
</h1>
10171017
<dl class="header">
10181018
<dt>description</dt>
10191019
<dd>
1020-
It returns an ISO Date Record that, when converted to a Calendar Date Record with _calendar_ (for example, with CalendarISOToDate), contains the given _year_, _month_, and _day_ values in its [[Year]], [[Month]], and [[Day]] fields. If this is not possible, a RangeError is thrown.
1020+
It returns an ISO Date Record that, when converted to a Calendar Date Record with _calendar_ (for example, with CalendarISOToDate), contains the given _year_, _arithmeticalMonth_, and _day_ values in its [[Year]], [[Month]], and [[Day]] fields. If this is not possible, a RangeError is thrown.
10211021
</dd>
10221022
</dl>
10231023
<p>It performs the following steps when called:</p>
10241024
<emu-alg>
1025-
1. If _year_, _month_, and _day_ do not form a valid date in _calendar_, throw a RangeError exception.
1025+
1. If _year_, _arithmeticalMonth_, and _day_ do not form a valid date in _calendar_, throw a RangeError exception.
10261026
1. Return a calendar-dependent ISO Date Record as described above.
10271027
</emu-alg>
10281028
</emu-clause>
@@ -1032,13 +1032,13 @@ contributors: Google, Ecma International
10321032
CalendarDaysInMonth (
10331033
_calendar_: a calendar type that is not *"iso8601"*,
10341034
_year_: an integer,
1035-
_month_: an integer,
1035+
_arithmeticalMonth_: an integer,
10361036
): an integer
10371037
</h1>
10381038
<dl class="header">
10391039
<dt>description</dt>
10401040
<dd>
1041-
It interprets _year_ and _month_ as arithmetical values in the given _calendar_ and returns the number of days in the corresponding month.
1041+
It interprets _year_ and _arithmeticalMonth_ as arithmetical values in the given _calendar_ and returns the number of days in the corresponding month.
10421042
</dd>
10431043
</dl>
10441044
<p>It performs the following steps when called:</p>
@@ -1071,21 +1071,21 @@ contributors: Google, Ecma International
10711071
BalanceNonISODate (
10721072
_calendar_: a calendar type that is not *"iso8601"*,
10731073
_year_: an integer,
1074-
_month_: an integer,
1074+
_arithmeticalMonth_: an integer,
10751075
_day_: an integer,
10761076
): a Record with fields [[Year]] (an integer), [[Month]] (an integer), and [[Day]] (an integer)
10771077
</h1>
10781078
<dl class="header">
10791079
<dt>description</dt>
10801080
<dd>
1081-
It interprets the given _year_ and potentially out-of-range _month_ and _day_ as arithmetical values in the given _calendar_ and returns in-range values by overflowing out-of-range _month_ or _day_ values into the next-highest unit.
1081+
It interprets the given _year_ and potentially out-of-range _arithmeticalMonth_ and _day_ as arithmetical values in the given _calendar_ and returns in-range values by overflowing out-of-range _arithmeticalMonth_ or _day_ values into the next-highest unit.
10821082
This date may be outside the range given by ISODateTimeWithinLimits.
10831083
</dd>
10841084
</dl>
10851085
<p>It performs the following steps when called:</p>
10861086
<emu-alg>
10871087
1. Let _resolvedYear_ be _year_.
1088-
1. Let _resolvedMonth_ be _month_.
1088+
1. Let _resolvedMonth_ be _arithmeticalMonth_.
10891089
1. Let _monthsInYear_ be CalendarMonthsInYear(_calendar_, _resolvedYear_).
10901090
1. Repeat, while _resolvedMonth_ &le; 0,
10911091
1. Set _resolvedYear_ to _resolvedYear_ - 1.
@@ -1283,19 +1283,19 @@ contributors: Google, Ecma International
12831283
1. Let _year_ be _fields_.[[Year]].
12841284
1. If _fields_.[[MonthCode]] is not ~unset~, then
12851285
1. If IsValidMonthCodeForCalendar(_calendar_, _fields_.[[MonthCode]]) is *false*, throw a *RangeError* exception.
1286-
1. Let _month_ be ? ConstrainMonthCodeToArithmeticalMonth(_calendar_, _year_, _fields_.[[MonthCode]], _overflow_).
1286+
1. Let _arithmeticalMonth_ be ? ConstrainMonthCodeToArithmeticalMonth(_calendar_, _year_, _fields_.[[MonthCode]], _overflow_).
12871287
1. Else,
12881288
1. Assert: _fields_.[[Month]] is not ~unset~.
1289-
1. Let _month_ be _fields_.[[Month]].
1289+
1. Let _arithmeticalMonth_ be _fields_.[[Month]].
12901290
1. Let _day_ be _fields_.[[Day]].
12911291
1. Assert: _day_ is not ~unset~.
1292-
1. Let _daysInMonth_ be CalendarDaysInMonth(_calendar_, _year_, _month_).
1292+
1. Let _daysInMonth_ be CalendarDaysInMonth(_calendar_, _year_, _arithmeticalMonth_).
12931293
1. If _daysInMonth_ &le; _day_, then
12941294
1. If _overflow_ is ~reject~, throw a *RangeError* exception.
12951295
1. Let _regulatedDay_ be _daysInMonth_.
12961296
1. Else,
12971297
1. Let _regulatedDay_ be _day_.
1298-
1. Return ? CalendarDateArithmeticalToISO(_calendar_, _year_, _month_, _regulatedDay_).
1298+
1. Return ? CalendarDateArithmeticalToISO(_calendar_, _year_, _arithmeticalMonth_, _regulatedDay_).
12991299
</emu-alg>
13001300
</emu-clause>
13011301

0 commit comments

Comments
 (0)