1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:17:45 +00:00

LibJS: Define IsBuiltinCalendar in terms of AvailableCalendars

This is an editorial change in the Temporal spec.

See: 896b72d
This commit is contained in:
Linus Groh 2022-04-29 18:42:56 +02:00
parent 2499911898
commit aac457755d
3 changed files with 79 additions and 65 deletions

View file

@ -30,8 +30,9 @@ private:
String m_identifier; // [[Identifier]]
};
ThrowCompletionOr<Calendar*> create_temporal_calendar(GlobalObject&, String const& identifier, FunctionObject const* new_target = nullptr);
bool is_builtin_calendar(String const& identifier);
Span<StringView const> available_calendars();
ThrowCompletionOr<Calendar*> create_temporal_calendar(GlobalObject&, String const& identifier, FunctionObject const* new_target = nullptr);
ThrowCompletionOr<Calendar*> get_builtin_calendar(GlobalObject&, String const& identifier);
Calendar* get_iso8601_calendar(GlobalObject&);
ThrowCompletionOr<Vector<String>> calendar_fields(GlobalObject&, Object& calendar, Vector<StringView> const& field_names);