Skip to content

Commit de625f4

Browse files
committed
More spec build cleanup
1 parent 5e3fac2 commit de625f4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spec.emu

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ 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 _parts_ be CalendarISOToDate(_calendar_, _baseDate_).
905+
1. Let _parts_ be CalendarISOToDate(_calendar_, _isoDate_).
906906
1. Let _yearMonth_ be RegulateNonISOYearMonth(_calendar_, _parts_.[[Year]], _parts_.[[MonthCode]], _duration_.[[Years]]).
907907
1. Let _endOfMonth_ be BalanceNonISODate(_calendar_, _yearMonth_.[[Year]], _yearMonth_.[[Month]] + _duration_.[[Months]] + 1, 0).
908908
1. Let _baseDay_ be _parts_.[[Day]].
@@ -991,8 +991,7 @@ contributors: Google, Ecma International
991991
1. Let _number_ be 1.
992992
1. Let _isLeap_ be *false*.
993993
1. Repeat, while _number_ &le; 12,
994-
1. Let _intermediate_ be CreateMonthCode(_number_, _isLeap_).
995-
1. If _calendar_ contains _monthCode_ in _year_, according to a calendar-dependent algorithm, then
994+
1. If _calendar_ contains CreateMonthCode(_number_, _isLeap_) in _year_, according to a calendar-dependent algorithm, then
996995
1. Set _monthsBefore_ to _monthsBefore_ + 1.
997996
1. If _monthCodeParts_.[[Number]] is _number_ and _monthCodeParts.[[IsLeap]] is _isLeap_, then
998997
1. Return _monthsBefore_.
@@ -1291,7 +1290,7 @@ contributors: Google, Ecma International
12911290
1. Let _month_ be MonthCodeToArithmeticalMonth(_calendar_, _year_, _fields_.[[MonthCode]]).
12921291
1. If _month_ is ~invalid~, throw a *RangeError* exception.
12931292
1. Else,
1294-
1. Let _month_ be RegulateNonISOYearMonth(_calendar_, _year_, _monthCode_, 0).[[Month]].
1293+
1. Let _month_ be RegulateNonISOYearMonth(_calendar_, _year_, _fields_.[[MonthCode]], 0).[[Month]].
12951294
1. Else,
12961295
1. Assert: _fields_.[[Month]] is not ~unset~.
12971296
1. Let _month_ be _fields_.[[Month]].
@@ -1303,7 +1302,7 @@ contributors: Google, Ecma International
13031302
1. Let _regulatedDay_ be _daysInMonth_.
13041303
1. Else,
13051304
1. Let _regulatedDay_ be _day_.
1306-
1. Return ? CalendarDateArithmeticalToISO(_calendar_, _year_, _month_, _day_).
1305+
1. Return ? CalendarDateArithmeticalToISO(_calendar_, _year_, _month_, _regulatedDay_).
13071306
</emu-alg>
13081307
</emu-clause>
13091308

0 commit comments

Comments
 (0)