1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibJS: Implement Temporal.PlainYearMonth.prototype.add/subtract

This commit is contained in:
Timothy Flynn 2024-11-21 19:09:21 -05:00 committed by Andreas Kling
parent cb5d1b5086
commit 35f22dcf79
Notes: github-actions[bot] 2024-11-22 18:56:24 +00:00
8 changed files with 154 additions and 0 deletions

View file

@ -116,6 +116,7 @@ struct CalendarNudgeResult {
DateDuration zero_date_duration(VM&);
InternalDuration to_internal_duration_record(VM&, Duration const&);
InternalDuration to_internal_duration_record_with_24_hour_days(VM&, Duration const&);
ThrowCompletionOr<DateDuration> to_date_duration_record_without_time(VM&, Duration const&);
ThrowCompletionOr<GC::Ref<Duration>> temporal_duration_from_internal(VM&, InternalDuration const&, Unit largest_unit);
ThrowCompletionOr<DateDuration> create_date_duration_record(VM&, double years, double months, double weeks, double days);
ThrowCompletionOr<DateDuration> adjust_date_duration_record(VM&, DateDuration const&, double days, Optional<double> weeks = {}, Optional<double> months = {});