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

LibJS: Fix type confusion in msFromTime

This is an editorial change in the ECMA-262 spec.

See: 8e572b6
This commit is contained in:
Linus Groh 2022-05-03 21:23:57 +02:00
parent 03e13715ac
commit 17fb40bc42

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2021, Linus Groh <linusg@serenityos.org>
* Copyright (c) 2020-2022, Linus Groh <linusg@serenityos.org>
* Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
@ -251,7 +251,7 @@ u16 ms_from_time(double t)
if (!Value(t).is_finite_number())
return 0;
// 𝔽((t) modulo msPerSecond)
// 𝔽((t) modulo (msPerSecond))
return static_cast<u16>(modulo(t, Date::ms_per_second));
}