[prev in list] [next in list] [prev in thread] [next in thread]
List: webkit-unassigned
Subject: [Webkit-unassigned] [Bug 141115] New: new Date(NaN).toJSON() must return null instead of throwing a
From: bugzilla-daemon () webkit ! org
Date: 2015-01-31 12:59:55
Message-ID: bug-141115-2851 () https ! bugs ! webkit ! org/
[Download RAW message or body]
--1422709203.cCde30.20649
Date: Sat, 31 Jan 2015 05:00:03 -0800
MIME-Version: 1.0
Content-Type: text/plain
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@lists.webkit.org
Reporter: claude.pache@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.
--1422709203.cCde30.20649
Date: Sat, 31 Jan 2015 05:00:03 -0800
MIME-Version: 1.0
Content-Type: text/html
<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - new Date(NaN).toJSON() must return null instead of throwing a \
TypeError" href="https://bugs.webkit.org/show_bug.cgi?id=141115">141115</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>new Date(NaN).toJSON() must return null instead of throwing a TypeError
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>528+ (Nightly build)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>JavaScriptCore
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>claude.pache@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>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]: <a \
href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.5.44">http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.5.44</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>
--1422709203.cCde30.20649--
_______________________________________________
webkit-unassigned mailing list
webkit-unassigned@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-unassigned
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic