[es6] Use the correct ToPrimitive in the Date Constructor.
authorbmeurer <bmeurer@chromium.org>
Fri, 18 Sep 2015 13:20:25 +0000 (06:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 18 Sep 2015 13:20:37 +0000 (13:20 +0000)
commit90e1a0ddb328f566d444e25c26b0550ee56a67e8
treea128f6bbae0a42ca4eb8d8b8213cf0b642652ba9
parent4efa41f3bc8f9376cff24a94bb55049ce992eb35
[es6] Use the correct ToPrimitive in the Date Constructor.

This way we can finally remove the ES5 ToPrimitive builtin from
runtime.js, and the Date Constructor now properly supports
@@toPrimitive for the single argument case as well.

CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_layout_dbg,v8_linux_nosnap_dbg
R=rossberg@chromium.org
BUG=v8:4307
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30832}
src/contexts.h
src/date.js
src/macros.py
src/runtime.js