You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.emu
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1010,19 +1010,19 @@ contributors: Google, Ecma International
1010
1010
CalendarDateArithmeticalToISO (
1011
1011
_calendar_: a calendar type that is not *"iso8601"*,
1012
1012
_year_: an integer,
1013
-
_month_: an integer,
1013
+
_arithmeticalMonth_: an integer,
1014
1014
_day_: an integer,
1015
1015
): either a normal completion containing an ISO Date Record or a throw completion
1016
1016
</h1>
1017
1017
<dl class="header">
1018
1018
<dt>description</dt>
1019
1019
<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.
1021
1021
</dd>
1022
1022
</dl>
1023
1023
<p>It performs the following steps when called:</p>
1024
1024
<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.
1026
1026
1. Return a calendar-dependent ISO Date Record as described above.
1027
1027
</emu-alg>
1028
1028
</emu-clause>
@@ -1032,13 +1032,13 @@ contributors: Google, Ecma International
1032
1032
CalendarDaysInMonth (
1033
1033
_calendar_: a calendar type that is not *"iso8601"*,
1034
1034
_year_: an integer,
1035
-
_month_: an integer,
1035
+
_arithmeticalMonth_: an integer,
1036
1036
): an integer
1037
1037
</h1>
1038
1038
<dl class="header">
1039
1039
<dt>description</dt>
1040
1040
<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.
1042
1042
</dd>
1043
1043
</dl>
1044
1044
<p>It performs the following steps when called:</p>
@@ -1071,21 +1071,21 @@ contributors: Google, Ecma International
1071
1071
BalanceNonISODate (
1072
1072
_calendar_: a calendar type that is not *"iso8601"*,
1073
1073
_year_: an integer,
1074
-
_month_: an integer,
1074
+
_arithmeticalMonth_: an integer,
1075
1075
_day_: an integer,
1076
1076
): a Record with fields [[Year]] (an integer), [[Month]] (an integer), and [[Day]] (an integer)
1077
1077
</h1>
1078
1078
<dl class="header">
1079
1079
<dt>description</dt>
1080
1080
<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.
1082
1082
This date may be outside the range given by ISODateTimeWithinLimits.
1083
1083
</dd>
1084
1084
</dl>
1085
1085
<p>It performs the following steps when called:</p>
1086
1086
<emu-alg>
1087
1087
1. Let _resolvedYear_ be _year_.
1088
-
1. Let _resolvedMonth_ be _month_.
1088
+
1. Let _resolvedMonth_ be _arithmeticalMonth_.
1089
1089
1. Let _monthsInYear_ be CalendarMonthsInYear(_calendar_, _resolvedYear_).
1090
1090
1. Repeat, while _resolvedMonth_ ≤ 0,
1091
1091
1. Set _resolvedYear_ to _resolvedYear_ - 1.
@@ -1283,19 +1283,19 @@ contributors: Google, Ecma International
1283
1283
1. Let _year_ be _fields_.[[Year]].
1284
1284
1. If _fields_.[[MonthCode]] is not ~unset~, then
1285
1285
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_).
1287
1287
1. Else,
1288
1288
1. Assert: _fields_.[[Month]] is not ~unset~.
1289
-
1. Let _month_ be _fields_.[[Month]].
1289
+
1. Let _arithmeticalMonth_ be _fields_.[[Month]].
1290
1290
1. Let _day_ be _fields_.[[Day]].
1291
1291
1. Assert: _day_ is not ~unset~.
1292
-
1. Let _daysInMonth_ be CalendarDaysInMonth(_calendar_, _year_, _month_).
1292
+
1. Let _daysInMonth_ be CalendarDaysInMonth(_calendar_, _year_, _arithmeticalMonth_).
1293
1293
1. If _daysInMonth_ ≤ _day_, then
1294
1294
1. If _overflow_ is ~reject~, throw a *RangeError* exception.
0 commit comments