[builtins] Fix ToString in Array.prototype.join.
authorbmeurer <bmeurer@chromium.org>
Mon, 28 Sep 2015 05:03:29 +0000 (22:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 28 Sep 2015 05:03:42 +0000 (05:03 +0000)
commit1ce206872ff272af1c7da64afda4101b15f1726c
tree9f4ed9aa004e120e3218f70e05582bffb9f9ccca
parent6266a9d6b576ab62e8b409d6fa0437a82b884d0d
[builtins] Fix ToString in Array.prototype.join.

The internal ConvertToString helper was using the wrong ToPrimitive,
actually the old ES5 like DefaultString, and it also prematurely
optimized for no real benefit.

BUG=v8:4307
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30956}
src/array.js
src/runtime.js