@@ -902,16 +902,16 @@ contributors: Google, Ecma International
902
902
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-nonisodateadd"></emu-xref>.</p>
903
903
<p>It performs the following steps when called:</p>
904
904
<emu-alg>
905
- 1. Let _yearMonth_ be RegulateNonISOYearMonth(_calendar_, _isoDate_, _years_ ).
906
- 1. Let _endOfMonth_ be BalanceNonISODate(_calendar_, _yearMonth_.[[Year]], _yearMonth_.[[Month]] + _months_ + 1, 0).
905
+ 1. Let _yearMonth_ be RegulateNonISOYearMonth(_calendar_, _isoDate_, _duration_.[[Years]] ).
906
+ 1. Let _endOfMonth_ be BalanceNonISODate(_calendar_, _yearMonth_.[[Year]], _yearMonth_.[[Month]] + _duration_.[[Months]] + 1, 0).
907
907
1. Let _baseDay_ be CalendarISOToDate(_calendar_, _isoDate_).[[Day]].
908
908
1. If _endOfMonth_.[[Day]] < _baseDay_, then
909
909
1. If _overflow_ is ~reject~, throw a *RangeError* exception.
910
910
1. Let _regulatedDay_ be _endOfMonth_.[[Day]].
911
911
1. Else,
912
912
1. Let _regulatedDay_ be _baseDay_.
913
913
1. Let _balancedDate_ be BalanceNonISODate(_calendar_, _endOfMonth_.[[Year]], _endOfMonth_.[[Month]], _regulatedDay_ + 7 * _duration_.[[Weeks]] + _duration_.[[Days]]).
914
- 1. Return CalendarDateArithmeticalToISO(_balancedDate_.[[Year]], _balancedDate_.[[Month]], _balancedDate_.[[Day]]).
914
+ 1. Return ? CalendarDateArithmeticalToISO(_calendar_, _balancedDate_.[[Year]], _balancedDate_.[[Month]], _balancedDate_.[[Day]]).
915
915
</emu-alg>
916
916
</emu-clause>
917
917
@@ -932,7 +932,7 @@ contributors: Google, Ecma International
932
932
1. If the length of _monthCode_ is 3, then
933
933
1. Let _isLeap_ be *false*.
934
934
1. Else,
935
- 1. Assert: the length of _monthCode_ is 4.
935
+ 1. Assert: The length of _monthCode_ is 4.
936
936
1. Let _isLeap_ be *true*.
937
937
1. Let _monthCodeDigits_ be the substring of _monthCode_ from 1 to 3.
938
938
1. Let _number_ be ℝ(StringToNumber(_monthCodeDigits_)).
@@ -955,7 +955,7 @@ contributors: Google, Ecma International
955
955
</dl>
956
956
<p>It performs the following steps when called:</p>
957
957
<emu-alg>
958
- 1. Let _numberPart_ be ToZeroPaddedDecimalString(_integer_ , 2).
958
+ 1. Let _numberPart_ be ToZeroPaddedDecimalString(_number_ , 2).
959
959
1. If _isLeap_ is *true*, then
960
960
1. Return the string-concatenation of the code unit 0x004D (LATIN CAPITAL LETTER M), _numberPart_, and the code unit 0x004C (LATIN CAPITAL LETTER L).
961
961
1. Else,
@@ -1006,11 +1006,12 @@ contributors: Google, Ecma International
1006
1006
</dl>
1007
1007
<p>It performs the following steps when called:</p>
1008
1008
<emu-alg>
1009
- Returns a calendar-dependent completion as described above.
1009
+ 1. If _year_, _monthCode_, and _day_ do not form a valid date in _calendar_, throw a RangeError exception.
1010
+ 1. Return a calendar-dependent ISO Date Record as described above.
1010
1011
</emu-alg>
1011
1012
</emu-clause>
1012
1013
1013
- <emu-clause id="sup-temporal-calendardatecodestoiso " type="implementation-defined abstract operation">
1014
+ <emu-clause id="sup-temporal-calendardatearithmeticaltoiso " type="implementation-defined abstract operation">
1014
1015
<h1>
1015
1016
CalendarDateArithmeticalToISO (
1016
1017
_calendar_: a calendar type that is not *"iso8601"*,
@@ -1027,7 +1028,8 @@ contributors: Google, Ecma International
1027
1028
</dl>
1028
1029
<p>It performs the following steps when called:</p>
1029
1030
<emu-alg>
1030
- Returns a calendar-dependent completion as described above.
1031
+ 1. If _year_, _month_, and _day_ do not form a valid date in _calendar_, throw a RangeError exception.
1032
+ 1. Return a calendar-dependent ISO Date Record as described above.
1031
1033
</emu-alg>
1032
1034
</emu-clause>
1033
1035
@@ -1047,7 +1049,7 @@ contributors: Google, Ecma International
1047
1049
</dl>
1048
1050
<p>It performs the following steps when called:</p>
1049
1051
<emu-alg>
1050
- Returns a calendar-dependent integer as described above.
1052
+ 1. Return a calendar-dependent integer as described above.
1051
1053
</emu-alg>
1052
1054
</emu-clause>
1053
1055
@@ -1066,7 +1068,7 @@ contributors: Google, Ecma International
1066
1068
</dl>
1067
1069
<p>It performs the following steps when called:</p>
1068
1070
<emu-alg>
1069
- Returns a calendar-dependent integer as described above.
1071
+ 1. Return a calendar-dependent integer as described above.
1070
1072
</emu-alg>
1071
1073
</emu-clause>
1072
1074
0 commit comments