1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:57:35 +00:00

LibJS: Fully parse the TimeZoneIANAName production

Currently does nothing as we'll declare everything other than UTC as
invalid, but it's a first step towards supporting named time zones :^)
This commit is contained in:
Linus Groh 2022-01-06 19:00:48 +01:00
parent 6a4d06e739
commit 3bd7f5b89e
3 changed files with 64 additions and 10 deletions

View file

@ -36,6 +36,6 @@ describe("errors", () => {
expect(() => {
zonedDateTime.withTimeZone("UTCfoobar");
}).toThrowWithMessage(RangeError, "Invalid time zone string 'UTCfoobar'");
}).toThrowWithMessage(RangeError, "Invalid time zone name 'UTCfoobar'");
});
});