Closed
Bug 1858851
Opened 2 years ago
Closed 2 years ago
Dashed dates with alphabetic month names and year > 9999 parse incorrectly
Categories
(Core :: JavaScript: Standard Library, defect, P3)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
121 Branch
| Tracking | Status | |
|---|---|---|
| firefox121 | --- | fixed |
People
(Reporter: vinny.diehl, Assigned: vinny.diehl)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed, parity-chrome, parity-safari)
Attachments
(1 file)
The year is parsed as a negative.
> eshost -te 'new Date("01-Jan-10000").toString()'
| Engine | Result |
|---|---|
| JavaScriptCore | Sat Jan 01 10000 00:00:00 GMT-0700 (Mountain Standard Time) |
| SpiderMonkey | Sat Jan 01 -10000 00:00:00 GMT-0728 (Mountain Standard Time) |
| V8 | Sat Jan 01 10000 00:00:00 GMT-0700 (Mountain Standard Time) |
This presents similarly to bug 1617562, because the format is being rejected by TryParseDashedDatePrefix; some trivial adjustments to make it accept 5- and 6-digit years should fix this.
| Assignee | ||
Updated•2 years ago
|
Blocks: sm-date-parse
Summary: Dashed dates with year > 9999 parse incorrectly → Dashed dates with alphabetic month names and year > 9999 parse incorrectly
| Assignee | ||
Updated•2 years ago
|
Keywords: parity-chrome,
parity-safari
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → vinny.diehl
Status: NEW → ASSIGNED
Updated•2 years ago
|
Priority: -- → P3
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/00c1813123fd
Fix parsing for dashed dates with alphabetic month and year > 9999 r=arai
Comment 3•2 years ago
•
|
||
Backed out for SM failures on dashed-date.js.
Failure logs:
- https://treeherder.mozilla.org/logviewer?job_id=433455333&repo=autoland
- https://treeherder.mozilla.org/logviewer?job_id=433463477&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/7b2d6b3b2f1aee8ffc913c56f98a4185526781e3
Flags: needinfo?(vinny.diehl)
| Assignee | ||
Comment 4•2 years ago
•
|
||
This was overflowing s on opt builds, fixed.
Flags: needinfo?(vinny.diehl)
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/36a87a643270
Fix parsing for dashed dates with alphabetic month and year > 9999 r=arai
Comment 6•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox121:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
| Assignee | ||
Comment 7•2 years ago
|
||
Relnoted here: https://github.com/mdn/content/pull/30234
| Assignee | ||
Updated•2 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•