mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:07:35 +00:00
LibJS: Remove call to ToPositiveInteger after CalendarDaysInMonth
Implements: tc39/proposal-temporal@261692a In order to remove the call to to_positive_integer() there neeeded to be a change of return type from ThrowCompletionOr<Value> to ThrowCompletionOr<double>. This is one of the changes that will come anyways with the following commit: tc39/proposal-temporal@11aad40. :^)
This commit is contained in:
parent
86995be111
commit
84db0c8dbf
3 changed files with 3 additions and 6 deletions
|
@ -55,7 +55,7 @@ ThrowCompletionOr<Value> calendar_day_of_year(VM&, Object& calendar, Object& dat
|
|||
ThrowCompletionOr<Value> calendar_week_of_year(VM&, Object& calendar, Object& date_like);
|
||||
ThrowCompletionOr<Value> calendar_year_of_week(VM&, Object& calendar, Object& date_like);
|
||||
ThrowCompletionOr<Value> calendar_days_in_week(VM&, Object& calendar, Object& date_like);
|
||||
ThrowCompletionOr<Value> calendar_days_in_month(VM&, Object& calendar, Object& date_like);
|
||||
ThrowCompletionOr<double> calendar_days_in_month(VM&, Object& calendar, Object& date_like);
|
||||
ThrowCompletionOr<Value> calendar_days_in_year(VM&, Object& calendar, Object& date_like);
|
||||
ThrowCompletionOr<Value> calendar_months_in_year(VM&, Object& calendar, Object& date_like);
|
||||
ThrowCompletionOr<Value> calendar_in_leap_year(VM&, Object& calendar, Object& date_like);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue