Skip to content

Commit 4d93139

Browse files
committed
Editorial: Define CheckISODaysRange in terms of ISODateTimeWithinLimits
1 parent 6b12d09 commit 4d93139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/abstractops.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ <h1>
119119
<dd>It checks that the given date is within the range of 10<sup>8</sup> days from the epoch.</dd>
120120
</dl>
121121
<emu-alg>
122-
1. If abs(ISODateToEpochDays(_isoDate_.[[Year]], _isoDate_.[[Month]] - 1, _isoDate_.[[Day]])) > 10<sup>8</sup>, then
122+
1. Let _dateTime_ be CombineISODateAndTimeRecord(_isoDate_, MidnightTimeRecord()).
123+
1. If ISODateTimeWithinLimits(_dateTime_) is *false*, then
123124
1. Throw a *RangeError* exception.
124125
1. Return ~unused~.
125126
</emu-alg>
126127
<emu-note type="editor">
127128
This operation is solely present to ensure that GetUTCEpochNanoseconds is not called with numbers that are too large.
128-
It is distinct from ISODateWithinLimits, which uses GetUTCEpochNanoseconds.
129129
This operation can be removed with no observable effect when https://github.com/tc39/ecma262/issues/1087 is fixed.
130130
</emu-note>
131131
</emu-clause>

0 commit comments

Comments
 (0)