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:
parent
cb5d1b5086
commit
35f22dcf79
Notes:
github-actions[bot]
2024-11-22 18:56:24 +00:00
Author: https://github.com/trflynn89
Commit: 35f22dcf79
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2496
8 changed files with 154 additions and 0 deletions
|
@ -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 = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue