Daniel Bertalan
96b197ef46
LibJS/Temporal: Perform floating point arithmetic in RoundTime
...
The valid range for temporal values (`nsMinInstant`/`nsMaxInstant`)
means performing nanosecond-valued integers could lead to an overflow.
NB: Only the `roundingMode: "day"` case was affected, as all others were
already performing the division on floating-point `fractional_second`
values. I'm adding `.0` suffixes everywhere to make this fact clearer.
This adds a few local tests as well, as those are tested with sanitizers
enabled by default, unlike test262.
2023-07-01 06:51:25 +02:00
..
2023-07-01 06:51:25 +02:00
2022-11-17 16:05:20 +00:00
2022-11-30 08:05:37 +01:00
2023-06-10 07:20:33 +02:00
2023-06-24 18:33:44 +02:00
2023-06-17 20:01:38 +02:00
2021-06-18 20:35:23 +01:00
2021-01-12 12:17:46 +01:00
2021-12-21 14:04:23 +01:00
2021-01-12 12:17:46 +01:00
2021-02-26 16:59:37 +01:00
2021-07-04 22:07:36 +01:00
2021-01-12 12:17:46 +01:00
2021-10-15 10:27:16 +01:00
2021-01-12 12:17:46 +01:00
2021-06-23 09:38:33 +01:00
2021-06-23 09:38:33 +01:00
2021-01-12 12:17:46 +01:00
2022-02-18 22:31:36 +00:00
2023-01-10 15:30:07 -05:00
2021-05-13 23:59:00 +01:00
2021-01-12 12:17:46 +01:00
2022-11-30 08:05:37 +01:00
2021-06-05 23:54:08 +01:00
2021-01-12 12:17:46 +01:00
2022-12-14 15:27:08 +00:00
2022-03-06 01:38:25 +02:00
2022-08-24 23:27:17 +01:00
2022-02-15 00:51:25 +00:00
2021-06-06 01:34:22 +01:00
2021-01-12 12:17:46 +01:00
2021-07-20 23:45:28 +02:00
2021-11-27 01:58:05 +02:00
2021-09-30 08:16:32 +01:00
2022-02-13 14:33:46 +00:00
2022-01-18 00:49:16 +00:00
2021-11-30 17:05:32 +00:00
2021-01-12 12:17:46 +01:00
2021-09-30 08:16:32 +01:00
2021-01-12 12:17:46 +01:00
2021-09-26 18:04:25 +02:00
2022-11-15 12:00:36 +00:00
2022-11-15 12:00:36 +00:00
2023-01-23 09:56:50 +00:00
2021-12-08 20:08:26 +00:00
2021-01-12 12:17:46 +01:00
2021-01-12 12:17:46 +01:00
2022-11-08 21:10:53 +00:00
2022-11-08 21:10:53 +00:00
2021-01-12 12:17:46 +01:00
2023-01-23 09:56:50 +00:00
2023-01-23 09:56:50 +00:00
2021-01-12 12:17:46 +01:00
2021-01-12 12:17:46 +01:00
2021-09-08 20:37:39 +01:00