1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibJS: Fix RoundNumberToIncrement spec number

This commit is contained in:
Linus Groh 2022-04-29 21:52:30 +02:00
parent c57410358a
commit 7bf4a785c6

View file

@ -983,7 +983,7 @@ String format_seconds_string_part(u8 second, u16 millisecond, u16 microsecond, u
// it uses mathematical values which can be arbitrarily (but not infinitely) large.
// Incidentally V8's Temporal implementation does the same :^)
// 13.30 RoundNumberToIncrement ( x, increment, roundingMode ), https://tc39.es/proposal-temporal/#sec-temporal-roundnumbertoincrement
// 13.29 RoundNumberToIncrement ( x, increment, roundingMode ), https://tc39.es/proposal-temporal/#sec-temporal-roundnumbertoincrement
i64 round_number_to_increment(double x, u64 increment, StringView rounding_mode)
{
// 1. Assert: x and increment are mathematical values.