mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibJS: Clip parsed IS0 8601 strings to +/- 8.64e15
This commit is contained in:
parent
aea4f79b57
commit
643992904c
Notes:
sideshowbarker
2024-07-17 20:52:59 +09:00
Author: https://github.com/trflynn89
Commit: 643992904c
Pull-request: https://github.com/SerenityOS/serenity/pull/11891
2 changed files with 11 additions and 7 deletions
|
@ -31,3 +31,8 @@ test("basic functionality", () => {
|
|||
expect(Date.parse("1970-06-30T13:30Zoo")).toBe(NaN);
|
||||
expect(Date.parse("2020T13:30.40:")).toBe(NaN);
|
||||
});
|
||||
|
||||
test("time clip", () => {
|
||||
expect(Date.parse("+999999")).toBeNaN();
|
||||
expect(Date.parse("-999999")).toBeNaN();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue