فهرست منبع

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
Linus Groh 3 سال پیش
والد
کامیت
b70a55bd5a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp

+ 1 - 1
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();