Skip to content

Commit 77bef95

Browse files
committed
Editorial: Pass ISO Date-Time Record to CheckISODaysRange
1 parent 127dce2 commit 77bef95

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

spec/abstractops.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,15 @@ <h1>Date Equations</h1>
111111
<emu-clause id="sec-checkisodaysrange" type="abstract operation">
112112
<h1>
113113
CheckISODaysRange (
114-
_isoDate_: an ISO Date Record,
114+
_isoDateTime_: an ISO Date-Time Record,
115115
): either a normal completion containing ~unused~ or a throw completion
116116
</h1>
117117
<dl class="header">
118118
<dt>description</dt>
119-
<dd>It checks that the given date is within the range of 10<sup>8</sup> days from the epoch.</dd>
119+
<dd>It checks that the given date-time is within the range of 10<sup>8</sup> days from the epoch.</dd>
120120
</dl>
121121
<emu-alg>
122-
1. Let _dateTime_ be CombineISODateAndTimeRecord(_isoDate_, MidnightTimeRecord()).
123-
1. If ISODateTimeWithinLimits(_dateTime_) is *false*, then
122+
1. If ISODateTimeWithinLimits(_isoDateTime_) is *false*, then
124123
1. Throw a *RangeError* exception.
125124
1. Return ~unused~.
126125
</emu-alg>

spec/instant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ <h1>
415415
1. If _parsed_.[[Time]] is ~start-of-day~, let _time_ be MidnightTimeRecord(); else let _time_ be _parsed_.[[Time]].
416416
1. Let _isoDate_ be CreateISODateRecord(_parsed_.[[Year]], _parsed_.[[Month]], _parsed_.[[Day]]).
417417
1. Let _isoDateTime_ be CombineISODateAndTimeRecord(_isoDate_, _time_).
418-
1. Perform ? CheckISODaysRange(_isoDate_).
418+
1. Perform ? CheckISODaysRange(_isoDateTime_).
419419
1. Let _epochNanoseconds_ be GetUTCEpochNanoseconds(_isoDateTime_) - _offsetNanoseconds_.
420420
1. If IsValidEpochNanoseconds(_epochNanoseconds_) is *false*, throw a *RangeError* exception.
421421
1. Return ! CreateTemporalInstant(_epochNanoseconds_).

spec/timezone.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ <h1>
347347
</dd>
348348
</dl>
349349
<emu-alg>
350-
1. Perform ? CheckISODaysRange(_isoDateTime_.[[ISODate]]).
350+
1. Perform ? CheckISODaysRange(_isoDateTime_).
351351
1. Let _parseResult_ be ! ParseTimeZoneIdentifier(_timeZone_).
352352
1. If _parseResult_.[[OffsetMinutes]] is not ~empty~, then
353353
1. Let _offsetNanoseconds_ be _parseResult_.[[OffsetMinutes]] × 6 × 10<sup>10</sup>.

spec/zoneddatetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ <h1>
906906
</dd>
907907
</dl>
908908
<emu-alg>
909-
1. Perform ? CheckISODaysRange(_isoDateTime_.[[ISODate]]).
909+
1. Perform ? CheckISODaysRange(_isoDateTime_).
910910
1. If _offsetBehaviour_ is ~wall~, or _offsetBehaviour_ is ~option~ and _offsetOption_ is ~ignore~, then
911911
1. Return ? GetEpochNanosecondsFor(_timeZone_, _isoDateTime_, _disambiguation_).
912912
1. If _offsetBehaviour_ is ~exact~, or _offsetBehaviour_ is ~option~ and _offsetOption_ is ~use~, then

0 commit comments

Comments
 (0)