[es6] Function.prototype.name should be the empty string
authorarv <arv@chromium.org>
Thu, 23 Apr 2015 00:29:40 +0000 (17:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 00:29:27 +0000 (00:29 +0000)
commitd0db1c39cab264339ed32ea63912b7e814a24993
tree76e50fab47c3c319c9ec6db03c27c64e9f81bce8
parentbf06d5c9f5fccae2255c78620a264330e7eb6cd9
[es6] Function.prototype.name should be the empty string

ES6 specifies the function name property (it was not part of ES5) and
it specifies the name of Function.prototype to the empty string ("" and
not "Empty"). This makes us match Firefox, Safari and IE developer
preview.

BUG=v8:4033
LOG=N
R=adamk@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#28021}
src/bootstrapper.cc
test/mjsunit/es6/function-name-configurable.js
test/mjsunit/es6/function-prototype-name.js [new file with mode: 0644]