summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-08-08 14:48:48 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-25 21:11:23 +0100
commit54bb6bf2c07a8ca706159820c0bdfac1cabff2f6 (patch)
tree1e5d89afee8334709e231cf036a4836ce4f8fda6 /Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h
parent0d7b6343137cb2440f2a5e00cdbb222cb7b77a8d (diff)
downloadserenity-54bb6bf2c07a8ca706159820c0bdfac1cabff2f6.zip
LibJS: Avoid calling ToString on calendar when calendarName is "never"
This is a normative change in the Temporal spec. See: - https://github.com/tc39/proposal-temporal/commit/6122f4e - https://github.com/tc39/proposal-temporal/commit/cf586bc
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h
index 13045fd604..568239b3be 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h
@@ -59,6 +59,7 @@ ThrowCompletionOr<Object*> get_temporal_calendar_with_iso_default(VM&, Object&);
ThrowCompletionOr<PlainDate*> calendar_date_from_fields(VM&, Object& calendar, Object const& fields, Object const* options = nullptr);
ThrowCompletionOr<PlainYearMonth*> calendar_year_month_from_fields(VM&, Object& calendar, Object const& fields, Object const* options = nullptr);
ThrowCompletionOr<PlainMonthDay*> calendar_month_day_from_fields(VM&, Object& calendar, Object const& fields, Object const* options = nullptr);
+ThrowCompletionOr<String> maybe_format_calendar_annotation(VM&, Value calendar_object, StringView show_calendar);
String format_calendar_annotation(StringView id, StringView show_calendar);
ThrowCompletionOr<bool> calendar_equals(VM&, Object& one, Object& two);
ThrowCompletionOr<Object*> consolidate_calendars(VM&, Object& one, Object& two);