mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
LibJS: Define IsValidTimeZoneName in terms of AvailableTimeZones
This is an editorial change in the Temporal spec.
See: d83dcf0
Note that even though we already implement AvailableTimeZones for Intl,
I kept the existing implementation calling into LibTimeZone directly.
This commit is contained in:
parent
fefe447cf5
commit
72997c6b77
2 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ private:
|
|||
Optional<OffsetType> m_offset_nanoseconds; // [[OffsetNanoseconds]]
|
||||
};
|
||||
|
||||
bool is_valid_time_zone_name(String const& time_zone);
|
||||
bool is_valid_time_zone_name(StringView time_zone);
|
||||
String canonicalize_time_zone_name(String const& time_zone);
|
||||
ThrowCompletionOr<TimeZone*> create_temporal_time_zone(VM&, String const& identifier, FunctionObject const* new_target = nullptr);
|
||||
ISODateTime get_iso_parts_from_epoch(VM&, Crypto::SignedBigInteger const& epoch_nanoseconds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue