@@ -550,7 +550,7 @@ <h1>Temporal.ZonedDateTime.prototype.withPlainTime ( [ _plainTimeLike_ ] )</h1>
550
550
1. Else,
551
551
1. Let _plainTime_ be ? ToTemporalTime(_plainTimeLike_ ).
552
552
1. Let _resultISODateTime_ be CombineISODateAndTimeRecord(_isoDateTime_ .[[ISODate]], _plainTime_ .[[Time]]).
553
- 1. Perform ? CheckISODaysRange (_resultISODateTime_ ).
553
+ 1. If ISODateTimeWithinLimits (_resultISODateTime_ ) is *false* , throw a *RangeError* exception .
554
554
1. Let _epochNs_ be ? GetEpochNanosecondsFor(_timeZone_ , _resultISODateTime_ , ~compatible~ ).
555
555
1. Return ! CreateTemporalZonedDateTime(_epochNs_ , _timeZone_ , _calendar_ ).
556
556
</emu-alg >
907
907
</dd >
908
908
</dl >
909
909
<emu-alg >
910
- 1. Perform ? CheckISODaysRange (_isoDateTime_ ).
910
+ 1. If ISODateTimeWithinLimits (_isoDateTime_ ) is *false* , throw a *RangeError* exception .
911
911
1. If _offsetBehaviour_ is ~wall~ , or _offsetBehaviour_ is ~option~ and _offsetOption_ is ~ignore~ , then
912
912
1. Return ? GetEpochNanosecondsFor(_timeZone_ , _isoDateTime_ , _disambiguation_ ).
913
913
1. If _offsetBehaviour_ is ~exact~ , or _offsetBehaviour_ is ~option~ and _offsetOption_ is ~use~ , then
@@ -1091,7 +1091,7 @@ <h1>
1091
1091
1. Let _isoDateTime_ be GetISODateTimeFor(_timeZone_ , _epochNanoseconds_ ).
1092
1092
1. Let _addedDate_ be ? CalendarDateAdd(_calendar_ , _isoDateTime_ .[[ISODate]], _duration_ .[[Date]], _overflow_ ).
1093
1093
1. Let _intermediateDateTime_ be CombineISODateAndTimeRecord(_addedDate_ , _isoDateTime_ .[[Time]]).
1094
- 1. Perform ? CheckISODaysRange (_intermediateDateTime_ ).
1094
+ 1. If ISODateTimeWithinLimits (_intermediateDateTime_ ) is *false* , throw a *RangeError* exception .
1095
1095
1. Let _intermediateNs_ be ! GetEpochNanosecondsFor(_timeZone_ , _intermediateDateTime_ , ~compatible~ ).
1096
1096
1. Return ? AddInstant(_intermediateNs_ , _duration_ .[[Time]]).
1097
1097
</emu-alg >
@@ -1128,7 +1128,7 @@ <h1>
1128
1128
1. Repeat, while _dayCorrection_ ≤ _maxDayCorrection_ and _success_ is *false* ,
1129
1129
1. Let _intermediateDate_ be AddDaysToISODate(_endDateTime_ .[[ISODate]], _dayCorrection_ × _sign_ ).
1130
1130
1. Let _intermediateDateTime_ be CombineISODateAndTimeRecord(_intermediateDate_ , _startDateTime_ .[[Time]]).
1131
- 1. Perform ? CheckISODaysRange (_intermediateDateTime_ ).
1131
+ 1. If ISODateTimeWithinLimits (_intermediateDateTime_ ) is *false* , throw a *RangeError* exception .
1132
1132
1. Let _intermediateNs_ be ? GetEpochNanosecondsFor(_timeZone_ , _intermediateDateTime_ , ~compatible~ ).
1133
1133
1. Set _timeDuration_ to TimeDurationFromEpochNanosecondsDifference(_ns2_ , _intermediateNs_ ).
1134
1134
1. Let _timeSign_ be TimeDurationSign(_timeDuration_ ).
0 commit comments