mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibJS: Implement parsing of TemporalZonedDateTimeString
This commit is contained in:
parent
3b1de431cc
commit
98b876ad3f
Notes:
sideshowbarker
2024-07-18 00:56:19 +09:00
Author: https://github.com/linusg
Commit: 98b876ad3f
Pull-request: https://github.com/SerenityOS/serenity/pull/10971
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/alimpfard
5 changed files with 62 additions and 19 deletions
|
@ -148,4 +148,10 @@ describe("errors", () => {
|
|||
});
|
||||
}).toThrowWithMessage(TypeError, "Required property day is missing or undefined");
|
||||
});
|
||||
|
||||
test("invalid zoned date time string", () => {
|
||||
expect(() => {
|
||||
Temporal.ZonedDateTime.from("foo");
|
||||
}).toThrowWithMessage(RangeError, "Invalid zoned date time string 'foo'");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue