new Date(NaN).toJSON() must return null instead of throwing a TypeError
[WebKit-https.git] / Source / JavaScriptCore / ChangeLog
index 9b59b2c..dede225 100644 (file)
@@ -1,3 +1,13 @@
+2015-07-19  Jordan Harband  <ljharb@gmail.com>
+
+        new Date(NaN).toJSON() must return null instead of throwing a TypeError
+        https://bugs.webkit.org/show_bug.cgi?id=141115
+
+        Reviewed by Yusuke Suzuki.
+
+        * runtime/DatePrototype.cpp:
+        (JSC::dateProtoFuncToJSON):
+
 2015-07-19  Saam barati  <saambarati1@gmail.com>
 
         Parser::parseFunctionInfo hits RELEASE_ASSERT for Arrow Functions