1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-20 19:11:00 +00:00
serenity/Userland
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
..
Applets ClipboardHistory: Use i32 config change listener 2023-06-27 15:37:00 +01:00
Applications Userland: Convert config listener callbacks to use StringView 2023-06-27 15:37:00 +01:00
BuggieBox Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
Demos LibGUI+Userland: Port StatusBar::text() and set_text functions to String 2023-06-15 13:53:22 +01:00
DevTools HackStudio: Use StringView in DiffViewer::draw_line 2023-06-26 19:26:34 +02:00
DynamicLoader Everywhere: Resolve conflicts with LibC and libc++ 2023-06-27 12:40:38 +02:00
Games Userland: Convert config listener callbacks to use StringView 2023-06-27 15:37:00 +01:00
Libraries LibJS/Temporal: Perform floating point arithmetic in RoundTime 2023-07-01 06:51:25 +02:00
Services Userland: Convert config listener callbacks to use StringView 2023-06-27 15:37:00 +01:00
Shell Shell: Stop lying about string types 2023-06-13 01:49:02 +02:00
Utilities test262-runner+js: Respect the bytecode optimizations enabled flag 2023-06-27 14:35:23 +03:30
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00