summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-12-18 17:29:47 +0000
committerLinus Groh <mail@linusgroh.de>2021-12-18 22:32:39 +0000
commitb70a55bd5a61ef08f519e93b5603e0db83b973c7 (patch)
treea164d94f7e11e5ba80d65957e4592db17dcc3958 /Userland/Libraries
parent4b7f716f217424ed48e3c14924e41094a2fe425b (diff)
downloadserenity-b70a55bd5a61ef08f519e93b5603e0db83b973c7.zip
LibJS: Update spec comment in get_iso_parts_from_epoch()
This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/bdf60f5
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
index 570b095661..4ec2675837 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
@@ -120,7 +120,7 @@ ISODateTime get_iso_parts_from_epoch(BigInt const& epoch_nanoseconds)
{
// 1. Assert: epochNanoseconds is an integer.
- // 2. Let remainderNs be remainder(epochNanoseconds, 10^6).
+ // 2. Let remainderNs be epochNanoseconds modulo 10^6.
auto remainder_ns_bigint = epoch_nanoseconds.big_integer().divided_by(Crypto::UnsignedBigInteger { 1'000'000 }).remainder;
auto remainder_ns = remainder_ns_bigint.to_double();