1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:18:11 +00:00

LibJS: Implement Temporal.Duration.prototype.toString()

I hereby claim "implemented largest AO in LibJS ever" (450 lines). :^)
This commit is contained in:
Linus Groh 2021-11-07 01:41:52 +00:00
parent 36b51276d5
commit b2548393d2
7 changed files with 816 additions and 0 deletions

View file

@ -110,6 +110,7 @@ ThrowCompletionOr<Object*> merge_largest_unit_option(GlobalObject&, Object& opti
Optional<u16> maximum_temporal_duration_rounding_increment(StringView unit);
ThrowCompletionOr<void> reject_object_with_calendar_or_time_zone(GlobalObject&, Object&);
String format_seconds_string_part(u8 second, u16 millisecond, u16 microsecond, u16 nanosecond, Variant<StringView, u8> const& precision);
double sign(double);
double constrain_to_range(double x, double minimum, double maximum);
i64 round_number_to_increment(double, u64 increment, StringView rounding_mode);
BigInt* round_number_to_increment(GlobalObject&, BigInt const&, u64 increment, StringView rounding_mode);