summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-10-17 09:11:32 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-17 12:56:05 +0200
commit57162ad510b7e03137f9c6bf00b49252604c01d5 (patch)
tree6575e0a16cc7b82289a5052bc1128fc83eeda1c0 /Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h
parent72997c6b77ed7d6c24e9975a67eafabda9496921 (diff)
downloadserenity-57162ad510b7e03137f9c6bf00b49252604c01d5.zip
LibJS: Rename IsValidTimeZoneName to IsAvailableTimeZoneName
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/873313b
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h
index 36c2efda4a..dc20ea26eb 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.h
@@ -36,7 +36,7 @@ private:
Optional<OffsetType> m_offset_nanoseconds; // [[OffsetNanoseconds]]
};
-bool is_valid_time_zone_name(StringView time_zone);
+bool is_available_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);