mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +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:
parent
6a4d06e739
commit
3bd7f5b89e
3 changed files with 64 additions and 10 deletions
|
@ -36,6 +36,6 @@ describe("errors", () => {
|
|||
|
||||
expect(() => {
|
||||
zonedDateTime.withTimeZone("UTCfoobar");
|
||||
}).toThrowWithMessage(RangeError, "Invalid time zone string 'UTCfoobar'");
|
||||
}).toThrowWithMessage(RangeError, "Invalid time zone name 'UTCfoobar'");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue