mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS: Reject -00000 as extended year in Date parsing
This commit is contained in:
parent
0399239e3f
commit
9098257668
Notes:
sideshowbarker
2024-07-17 11:25:46 +09:00
Author: https://github.com/IdanHo
Commit: 9098257668
Pull-request: https://github.com/SerenityOS/serenity/pull/13853
Reviewed-by: https://github.com/linusg ✅
2 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,7 @@ test("basic functionality", () => {
|
|||
expect(Date.parse("1980-05-30T13:40+1:10")).toBe(NaN);
|
||||
expect(Date.parse("1970-06-30T13:30Zoo")).toBe(NaN);
|
||||
expect(Date.parse("2020T13:30.40:")).toBe(NaN);
|
||||
expect(Date.parse("-000000")).toBe(NaN);
|
||||
});
|
||||
|
||||
test("time clip", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue