Date() should not depend on Date.prototype.toString
authorarv <arv@chromium.org>
Tue, 23 Jun 2015 23:18:23 +0000 (16:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 23:18:40 +0000 (23:18 +0000)
commit6181ec9c2875d380e9abd0d24e386cc7fe2dd28c
tree8903fec80026c5577672cba892135d1f3f9c5a96
parent3164aa7483cb476da84895a3c9810015758fccf9
Date() should not depend on Date.prototype.toString

We used to call toString as a method which is not safe.

BUG=v8:4225
LOG=Y
R=adamk, littledan
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1200033003

Cr-Commit-Position: refs/heads/master@{#29242}
src/date.js
test/mjsunit/date.js