new Date('Apples 2016') returns Fri Jan 01 2016 00:00:00 GMT+0100 (CET)
Reported by
hanta...@gmail.com,
Jan 30 2018
|
||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36
Steps to reproduce the problem:
Try to create a Date object using an invalid date representation string as new Date('Apples 2016') or new Date('whatever 2016')
What is the expected behavior?
What went wrong?
Chromium should return an "Invalid Date" object as other web browsers do (I've personally tried Firefox and Edge), it returns a valid date object instead.
Did this work before? N/A
Chrome version: 64.0.3282.119 Channel: stable
OS Version:
Flash Version:
,
Jan 30 2018
,
Jan 31 2018
Able to reproduce the issue on reported chrome version 64.0.3282.11 and on the latest canary 66.0.3334.0 using Windows 10, Ubuntu 14.04 and Mac 10.13.1. As the issue is seen from M60(60.0.3072.0) considering it as non-regression and marking it as Untriaged. Thanks!
,
Feb 6 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by dtapu...@chromium.org
, Jan 30 2018