1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

LibJS: Replace U+2212 MINUS SIGN with U+002D HYPHEN-MINUS

This is an editorial change in the Temporal spec.

See: bbcd37b
This commit is contained in:
Linus Groh 2022-04-29 21:09:10 +02:00
parent df1f81ba90
commit 27793bf76c
20 changed files with 102 additions and 102 deletions

View file

@ -164,8 +164,8 @@ BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object)
auto now = Time::now_realtime().to_nanoseconds();
auto ns = Crypto::SignedBigInteger::create_from(now);
// 2. Set ns to the result of clamping ns between 8.64 × 10^21 and 8.64 × 10^21.
// NOTE: Time::to_nanoseconds() already clamps between (2^63) and 2^63 1, the range of an i64,
// 2. Set ns to the result of clamping ns between -8.64 × 10^21 and 8.64 × 10^21.
// NOTE: Time::to_nanoseconds() already clamps between -(2^63) and 2^63 - 1, the range of an i64,
// if an overflow occurs during seconds -> nanoseconds conversion.
// 3. Return (ns).