1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 06:24:58 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Temporal
Shannon Booth a7316d3641 LibJS: Update Temporal RoundDuration AO to some spec changes
This commit effectively just does a bulk update of this function to the
spec. Since there have been so many spec changes, no specific change was
made in mind, and many FIXMEs have been left for where we are still out
of date.

These changes also appear to include a normative change to the temporal
spec which was previously resulting in timeouts for some tests, and is
now resulting in a timeout.

Furthermore, this also resolves some crashes by protecting against
division by zero, instead throwing a RangeError. This can only happen
when a custom calender is provided which returns funky values. See:

https://github.com/tc39/proposal-temporal/commit/ed85e9

Diff Tests:
    +8     -4 💀    -4 💥
2024-01-14 16:08:52 -07:00
..
Calendar LibJS/Temporal: Allow annotations after YYYY-MM and MM-DD 2023-02-11 18:42:32 +00:00
Duration LibJS: Update Temporal RoundDuration AO to some spec changes 2024-01-14 16:08:52 -07:00
Instant LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
Now LibJS: Disable Temporal custom time zone test 2023-10-18 16:29:27 -04: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