Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet
commit3c8e0cb1cc3ea3a8871541136fb91e575b1c9940
authorAndré Bargull <andre.bargull@gmail.com>
Mon, 15 Apr 2024 18:27:19 +0000 (15 18:27 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Mon, 15 Apr 2024 18:27:19 +0000 (15 18:27 +0000)
treea5453aacb166fc5a003bf74f8256350746957267
parent6df34674355d508cf99c0e56ddd31e710dcf8596
Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet

Changes from:
- https://github.com/tc39/proposal-temporal/commit/156c7644af5447a99f36dfc1c5559c1c217b7c82

This also allows to change `NormalizedTimeAndDays::{time,dayLength}` to use
`int64_t` values instead of `NormalizedTimeDuration`.

Differential Revision: https://phabricator.services.mozilla.com/D198539
js/src/builtin/temporal/Duration.cpp
js/src/builtin/temporal/Instant.cpp
js/src/builtin/temporal/ZonedDateTime.cpp
js/src/builtin/temporal/ZonedDateTime.h