[Webkit-unassigned] [Bug 141115] New: new Date(NaN).toJSON() must return null instead of throwing a TypeError
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jan 31 04:59:55 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=141115
Bug ID: 141115
Summary: new Date(NaN).toJSON() must return null instead of
throwing a TypeError
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: claude.pache at gmail.com
When the toJSON method is applied to an invalid date, it must return null, and not throwing a TypeError.
Note that this behaviour is different from the toISOString method.
For reference, see [ES5.1 Date.prototype.toJSON], steps 2 and 3.
[ES5.1 Date.prototype.toJSON]: http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.5.44
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150131/b1587410/attachment-0002.html>
More information about the webkit-unassigned
mailing list