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

Issue 807270 link

Starred by 1 user

Issue metadata

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


Show other hotlists

Hotlists containing this issue:
Hotlist-4


Sign in to add a comment

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:
 
Components: -Blink Blink>JavaScript>Internationalization
Labels: Needs-Triage-M64
Cc: vamshi.k...@techmahindra.com
Labels: Triaged-ET M-66 FoundIn-66 Target-66 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
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!
Status: Available (was: Untriaged)

Sign in to add a comment