Skip to content

Commit d423175

Browse files
committed
Clean up spec build
1 parent 8a4c34a commit d423175

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

biblio.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,15 @@
123123
"id": "sec-temporal-zerodateduration"
124124
}
125125
]
126+
},
127+
{
128+
"location": "https://tc39.es/ecma262/",
129+
"entries": [
130+
{
131+
"type": "op",
132+
"aoid": "",
133+
"id": ""
134+
}
135+
]
126136
}
127137
]

spec.emu

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -902,16 +902,16 @@ contributors: Google, Ecma International
902902
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-nonisodateadd"></emu-xref>.</p>
903903
<p>It performs the following steps when called:</p>
904904
<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).
907907
1. Let _baseDay_ be CalendarISOToDate(_calendar_, _isoDate_).[[Day]].
908908
1. If _endOfMonth_.[[Day]] &lt; _baseDay_, then
909909
1. If _overflow_ is ~reject~, throw a *RangeError* exception.
910910
1. Let _regulatedDay_ be _endOfMonth_.[[Day]].
911911
1. Else,
912912
1. Let _regulatedDay_ be _baseDay_.
913913
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]]).
915915
</emu-alg>
916916
</emu-clause>
917917

@@ -932,7 +932,7 @@ contributors: Google, Ecma International
932932
1. If the length of _monthCode_ is 3, then
933933
1. Let _isLeap_ be *false*.
934934
1. Else,
935-
1. Assert: the length of _monthCode_ is 4.
935+
1. Assert: The length of _monthCode_ is 4.
936936
1. Let _isLeap_ be *true*.
937937
1. Let _monthCodeDigits_ be the substring of _monthCode_ from 1 to 3.
938938
1. Let _number_ be ℝ(StringToNumber(_monthCodeDigits_)).
@@ -955,7 +955,7 @@ contributors: Google, Ecma International
955955
</dl>
956956
<p>It performs the following steps when called:</p>
957957
<emu-alg>
958-
1. Let _numberPart_ be ToZeroPaddedDecimalString(_integer_, 2).
958+
1. Let _numberPart_ be ToZeroPaddedDecimalString(_number_, 2).
959959
1. If _isLeap_ is *true*, then
960960
1. Return the string-concatenation of the code unit 0x004D (LATIN CAPITAL LETTER M), _numberPart_, and the code unit 0x004C (LATIN CAPITAL LETTER L).
961961
1. Else,
@@ -1006,11 +1006,12 @@ contributors: Google, Ecma International
10061006
</dl>
10071007
<p>It performs the following steps when called:</p>
10081008
<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.
10101011
</emu-alg>
10111012
</emu-clause>
10121013

1013-
<emu-clause id="sup-temporal-calendardatecodestoiso" type="implementation-defined abstract operation">
1014+
<emu-clause id="sup-temporal-calendardatearithmeticaltoiso" type="implementation-defined abstract operation">
10141015
<h1>
10151016
CalendarDateArithmeticalToISO (
10161017
_calendar_: a calendar type that is not *"iso8601"*,
@@ -1027,7 +1028,8 @@ contributors: Google, Ecma International
10271028
</dl>
10281029
<p>It performs the following steps when called:</p>
10291030
<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.
10311033
</emu-alg>
10321034
</emu-clause>
10331035

@@ -1047,7 +1049,7 @@ contributors: Google, Ecma International
10471049
</dl>
10481050
<p>It performs the following steps when called:</p>
10491051
<emu-alg>
1050-
Returns a calendar-dependent integer as described above.
1052+
1. Return a calendar-dependent integer as described above.
10511053
</emu-alg>
10521054
</emu-clause>
10531055

@@ -1066,7 +1068,7 @@ contributors: Google, Ecma International
10661068
</dl>
10671069
<p>It performs the following steps when called:</p>
10681070
<emu-alg>
1069-
Returns a calendar-dependent integer as described above.
1071+
1. Return a calendar-dependent integer as described above.
10701072
</emu-alg>
10711073
</emu-clause>
10721074

0 commit comments

Comments
 (0)