commit | 521413918ade120b7ebe0418bfc1d8477f8de6be | [log] [tgz] |
---|---|---|
author | commit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Sun Jul 19 23:10:07 2015 +0000 |
committer | commit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Sun Jul 19 23:10:07 2015 +0000 |
tree | 1b1645b8745d30e2c55255924d14243a1c183cf2 | |
parent | 45b75ebb4d0b9b5a02031cf33bf7e967a59d6d6b [diff] |
new Date(NaN).toJSON() must return null instead of throwing a TypeError https://bugs.webkit.org/show_bug.cgi?id=141115 Patch by Jordan Harband <ljharb@gmail.com> on 2015-07-19 Reviewed by Yusuke Suzuki. Source/JavaScriptCore: * runtime/DatePrototype.cpp: (JSC::dateProtoFuncToJSON): LayoutTests: * js/dom/JSON-stringify-expected.txt: * js/resources/JSON-stringify.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@187016 268f45cc-cd09-0410-ab3c-d52691b4dbfc