Skip to content

Commit c20450b

Browse files
committed
Editorial: Replace ISODateTimeWithinLimits with CheckISODaysRange before GetEpochNanosecondsFor
1 parent 915e85b commit c20450b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/plaindate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ <h1>Temporal.PlainDate.prototype.toZonedDateTime ( _item_ )</h1>
460460
1. Else,
461461
1. Set _temporalTime_ to ? ToTemporalTime(_temporalTime_).
462462
1. Let _isoDateTime_ be CombineISODateAndTimeRecord(_temporalDate_.[[ISODate]], _temporalTime_.[[Time]]).
463-
1. If ISODateTimeWithinLimits(_isoDateTime_) is *false*, throw a *RangeError* exception.
463+
1. Perform ? CheckISODaysRange(_isoDateTime_).
464464
1. Let _epochNs_ be ? GetEpochNanosecondsFor(_timeZone_, _isoDateTime_, ~compatible~).
465465
1. Return ! CreateTemporalZonedDateTime(_epochNs_, _timeZone_, _temporalDate_.[[Calendar]]).
466466
</emu-alg>

spec/zoneddatetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ <h1>
10911091
1. Let _isoDateTime_ be GetISODateTimeFor(_timeZone_, _epochNanoseconds_).
10921092
1. Let _addedDate_ be ? CalendarDateAdd(_calendar_, _isoDateTime_.[[ISODate]], _duration_.[[Date]], _overflow_).
10931093
1. Let _intermediateDateTime_ be CombineISODateAndTimeRecord(_addedDate_, _isoDateTime_.[[Time]]).
1094-
1. If ISODateTimeWithinLimits(_intermediateDateTime_) is *false*, throw a *RangeError* exception.
1094+
1. Perform ? CheckISODaysRange(_intermediateDateTime_).
10951095
1. Let _intermediateNs_ be ! GetEpochNanosecondsFor(_timeZone_, _intermediateDateTime_, ~compatible~).
10961096
1. Return ? AddInstant(_intermediateNs_, _duration_.[[Time]]).
10971097
</emu-alg>

0 commit comments

Comments
 (0)