diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-07-11 23:49:05 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-12 19:05:17 +0100 |
commit | 84b028bd71bee672421ba86766ec954434ce4431 (patch) | |
tree | 875f52475e6ad86860417889158a4c5ea8346cef /Userland/Libraries/LibJS/Runtime/Temporal/Instant.h | |
parent | 75d1ffea005a1677faa89d6e50e7b9de7817a4f8 (diff) | |
download | serenity-84b028bd71bee672421ba86766ec954434ce4431.zip |
LibJS: Add Temporal.Instant.prototype.round()
As well as the required Abstract Operations.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Instant.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/Instant.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h index 631cea06ef..e34295946a 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.h @@ -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); } |