Skip to content

Commit f157b7a

Browse files
committed
fromIsoDate, toIsoDate
1 parent 3dacca7 commit f157b7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec.emu

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,8 @@ contributors: Google, Ecma International
11221122
NonISODateSurpasses (
11231123
_calendar_: a calendar type that is not *"iso8601"*,
11241124
_sign_: -1 or 1,
1125-
_baseDate_: an ISO Date Record,
1126-
_isoDate2_: an ISO Date Record,
1125+
_fromIsoDate_: an ISO Date Record,
1126+
_toIsoDate_: an ISO Date Record,
11271127
_years_: an integer,
11281128
_months_: an integer,
11291129
_weeks_: an integer,
@@ -1133,13 +1133,13 @@ contributors: Google, Ecma International
11331133
<dl class="header">
11341134
<dt>description</dt>
11351135
<dd>
1136-
The return value indicates whether the date _date1_, the result of adding the duration denoted by _years_, _months_, _weeks_, and _days_ to _baseDate_ in the calendar system denoted by _calendar_, surpasses _isoDate2_ in the direction denoted by _sign_.
1136+
The return value indicates whether the date _date1_, the result of adding the duration denoted by _years_, _months_, _weeks_, and _days_ to _fromIsoDate_ in the calendar system denoted by _calendar_, surpasses _toIsoDate_ in the direction denoted by _sign_.
11371137
If _weeks_ and _days_ are both zero, then _date1_ need not exist (for example, it could be February 30).
11381138
</dd>
11391139
</dl>
11401140
<p>It performs the following steps when called:</p>
11411141
<emu-alg>
1142-
1. Let _parts_ be CalendarISOToDate(_calendar_, _baseDate_).
1142+
1. Let _parts_ be CalendarISOToDate(_calendar_, _fromIsoDate_).
11431143
1. Let _y0_ be _parts_.[[Year]] + _years_.
11441144
1. Let _m0_ be ! ConstrainMonthCodeToArithmeticalMonth(_calendar_, _y0_, _parts_.[[MonthCode]], ~constrain~).
11451145
1. Let _endOfMonth_ be BalanceNonISODate(_calendar_, _y0_, _m0_ + _months_ + 1, 0).
@@ -1157,7 +1157,7 @@ contributors: Google, Ecma International
11571157
1. Let _y1_ be _endOfMonth_.[[Year]].
11581158
1. Let _m1_ be _endOfMonth_.[[Month]].
11591159
1. Let _d1_ be _baseDay_.
1160-
1. Let _calDate2_ be CalendarISOToDate(_calendar_, _isoDate2_).
1160+
1. Let _calDate2_ be CalendarISOToDate(_calendar_, _toIsoDate_).
11611161
1. If _y1_ ≠ _calDate2_.[[Year]], then
11621162
1. If _sign_ × (_y1_ - _calDate2_.[[Year]]) > 0, return *true*.
11631163
1. Else if _m1_ ≠ _calDate2_.[[Month]], then

0 commit comments

Comments
 (0)