LibJS: Implement stringification Temporal.PlainMonthDay prototypes

This commit is contained in:
Timothy Flynn 2024-11-20 14:57:18 -05:00 committed by Tim Flynn
commit 5bccb36a6f
Notes: github-actions[bot] 2024-11-22 00:25:37 +00:00
14 changed files with 238 additions and 7 deletions

View file

@ -10,6 +10,7 @@
#include <AK/String.h>
#include <LibJS/Runtime/Completion.h>
#include <LibJS/Runtime/Object.h>
#include <LibJS/Runtime/Temporal/AbstractOperations.h>
#include <LibJS/Runtime/Temporal/PlainDate.h>
namespace JS::Temporal {
@ -33,5 +34,6 @@ private:
ThrowCompletionOr<GC::Ref<PlainMonthDay>> to_temporal_month_day(VM&, Value item, Value options = js_undefined());
ThrowCompletionOr<GC::Ref<PlainMonthDay>> create_temporal_month_day(VM&, ISODate, String calendar, GC::Ptr<FunctionObject> new_target = {});
String temporal_month_day_to_string(PlainMonthDay const&, ShowCalendar);
}