[Webkit-unassigned] [Bug 70998] Date constructor handles infinite values incorrectly.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 31 00:12:42 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=70998
Gavin Barraclough <barraclough at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Behavior of |Date constructor handles
|Date.prototype.toISOString |infinite values
|not spec conform |incorrectly.
--- Comment #3 from Gavin Barraclough <barraclough at apple.com> 2011-10-31 00:12:42 PST ---
To clarify Sam's comment, the issue re RangeErrors was fixed last week, in bug #70394 - the bug here is different.
The problem is not in toISOString, but rather in the call to new Date. The test case assumes that the newly constructed Date has a NaN internal value; the bug is that it does not. You can demonstrate that toISOString behaved correctly by changing the arguments to new Date to ("") (which does correctly produce a Date with a NaN internal value).
Retitling the bug accordingly.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list