1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:37:44 +00:00

LibJS: Add Temporal.Instant.prototype.round()

As well as the required Abstract Operations.
This commit is contained in:
Idan Horowitz 2021-07-11 23:49:05 +03:00 committed by Linus Groh
parent 75d1ffea00
commit 84b028bd71
7 changed files with 361 additions and 1 deletions

View file

@ -41,5 +41,6 @@ Instant* create_temporal_instant(GlobalObject&, BigInt& nanoseconds, FunctionObj
Instant* to_temporal_instant(GlobalObject&, Value item);
BigInt* parse_temporal_instant(GlobalObject&, String const& iso_string);
i32 compare_epoch_nanoseconds(BigInt const&, BigInt const&);
BigInt* round_temporal_instant(GlobalObject&, BigInt const& nanoseconds, u64 increment, String const& unit, String const& rounding_mode);
}