Status: New
Owner: ----
New issue 696 by cpt.obvious: Date.parse() does not return NaN for invalid
date strings
http://code.google.com/p/v8/issues/detail?id=696
As of 2.2.7 the following no longer evaluates as true:
isNaN(Date.parse("this is definitely not a date"))
Looks like this changed in 2.2.7 but only noticed it now that NodeJS
upgraded from 2.2.6 to 2.2.8. Previously (< 2.2.7), an invalid date string
passed to Date.parse() would return NaN; now it consistently returns
978325200000 (Mon Jan 01 2001 00:00:00 GMT-0500 (EST)) for any invalid date
string.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev