ladybird/Userland/Libraries/LibJS/Tests/builtins/Temporal
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
..
Calendar LibJS/Temporal: Allow annotations after YYYY-MM and MM-DD 2023-02-11 18:42:32 +00:00
Duration LibJS: Reject relativeTo string such as "2022-08-18T17:01Z" 2022-10-17 12:56:05 +02:00
Instant LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
Now LibJS: Add a function to ensure calls are made within the same second 2022-12-03 23:04:08 +00:00
PlainDate LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
PlainDateTime LibJS/Temporal: Perform floating point arithmetic in RoundTime 2023-07-01 06:51:25 +02:00
PlainMonthDay LibJS/Temporal: Allow annotations after YYYY-MM and MM-DD 2023-02-11 18:42:32 +00:00
PlainTime Everywhere: Change spelling of 'behaviour' to 'behavior' 2023-05-07 01:05:09 +02:00
PlainYearMonth LibJS/Temporal: Allow annotations after YYYY-MM and MM-DD 2023-02-11 18:42:32 +00:00
TimeZone LibJS/Temporal: Allow annotations after YYYY-MM and MM-DD 2023-02-11 18:42:32 +00:00
ZonedDateTime LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
Temporal.@@toStringTag.js LibJS: Implement Temporal[@@toStringTag] 2021-07-27 18:48:22 +01:00