mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:57:35 +00:00
LibJS: Port parse_temporal_calendar_string()
Also make is_builtin_calendar() take a StringView as part of this, it only does equality checks.
This commit is contained in:
parent
8f7c2f8292
commit
ef389c086d
4 changed files with 9 additions and 9 deletions
|
@ -37,7 +37,7 @@ struct YearWeekRecord {
|
|||
i32 year { 0 };
|
||||
};
|
||||
|
||||
bool is_builtin_calendar(DeprecatedString const& identifier);
|
||||
bool is_builtin_calendar(StringView identifier);
|
||||
Span<StringView const> available_calendars();
|
||||
ThrowCompletionOr<Calendar*> create_temporal_calendar(VM&, DeprecatedString const& identifier, FunctionObject const* new_target = nullptr);
|
||||
ThrowCompletionOr<Calendar*> get_builtin_calendar(VM&, DeprecatedString const& identifier);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue