mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Use the rounding abstract operations from Intl.NumberFormat V3
This is an editorial change in the Temporal spec.
See: 75279e5
Co-Authored-By: Idan Horowitz <idan.horowitz@gmail.com>
This commit is contained in:
parent
93a20b3bfb
commit
ae1fdf299d
Notes:
sideshowbarker
2024-07-17 10:41:40 +09:00
Author: https://github.com/linusg
Commit: ae1fdf299d
Pull-request: https://github.com/SerenityOS/serenity/pull/14091
Reviewed-by: https://github.com/IdanHo
7 changed files with 306 additions and 113 deletions
|
@ -573,7 +573,7 @@ DaysAndTime round_time(u8 hour, u8 minute, u8 second, u16 millisecond, u16 micro
|
|||
quantity = nanosecond;
|
||||
}
|
||||
|
||||
// 10. Let result be ! RoundNumberToIncrement(quantity, increment, roundingMode).
|
||||
// 10. Let result be RoundNumberToIncrement(quantity, increment, roundingMode).
|
||||
auto result = round_number_to_increment(quantity, increment, rounding_mode);
|
||||
|
||||
// If unit is "day", then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue