New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 795851 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Date Parsing odd behavior with strings

Reported by ajdrau...@gmail.com, Dec 18 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Steps to reproduce the problem:
1. open console 
2. Evaluate : new Date("Century is the unit of time that equals a hundred years 1") or Evaluate: new Date("Daily is the unit of time that equals a day 1")

What is the expected behavior?
This should not parse. "Invalid Date" should be thrown

What went wrong?
Date parsed when keyword Century or Daily is used with random text in the middle and a valid integer at the end.

Did this work before? No 

Chrome version: 63.0.3239.84  Channel: stable
OS Version: 10.0
Flash Version: 

Edge and Firefox handle this correctly.
 
Cc: sc00335...@techmahindra.com
Labels: Triaged-ET M-65 Needs-Milestone OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
ajdrausal@ Thanks for the issue.

Able to reproduce this issue on Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 using the latest Canary 65.0.3298.3 and Stable 63.0.3239.108 by following the steps mentioned in the original comment.
Attached is the screen shot for reference.

This is a Non-Regression issue as this is observed from M50 chrome builds.
Hence marking this as 'Untriaged' for further updates from Dev.

Thanks..
795851.png
74.5 KB View Download
Labels: -Needs-Milestone Needs-Triage-M63
Components: -Blink Blink>JavaScript>Internationalization
Status: Available (was: Untriaged)
Project Member

Comment 5 by sheriffbot@chromium.org, Jan 2

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment