Skip to content

Commit 13be0f4

Browse files
committed
Editorial: Handle too large inputs early in UTC
Return `NaN` if `t` exceeds the "local time value" range, because operations called within `UTC` expect their arguments to be "local time values" and not arbitrarily large integers.
1 parent ed3cab3 commit 13be0f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33115,6 +33115,7 @@ <h1>
3311533115
</dl>
3311633116
<emu-alg>
3311733117
1. If _t_ is not finite, return *NaN*.
33118+
1. If abs(ℝ(_t_)) ≥ 8.64 × 10<sup>15</sup> + ℝ(msPerDay), return *NaN*.
3311833119
1. Let _systemTimeZoneIdentifier_ be SystemTimeZoneIdentifier().
3311933120
1. If IsTimeZoneOffsetString(_systemTimeZoneIdentifier_) is *true*, then
3312033121
1. Let _offsetNs_ be ParseTimeZoneOffsetString(_systemTimeZoneIdentifier_).

0 commit comments

Comments
 (0)