Make Error.prototype.name writable again, as required by the spec and the web.
authorrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 May 2012 12:35:11 +0000 (12:35 +0000)
committerrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 May 2012 12:35:11 +0000 (12:35 +0000)
commit9f04d733508bea8f16108956bfa1563d1ce4291e
treeaf77a826f106ddefd8e8559f4e1921d9dd72bbf7
parent526b3f2cac7e7bb87d4314cc0a326d53e9f875af
Make Error.prototype.name writable again, as required by the spec and the web.

Address http://code.google.com/p/chromium/issues/detail?id=69187 by instead
ignoring getters on ReferenceError.prototype.name in Error.prototype.toString.

And while we're at it, do the same for SyntaxError and TypeError, and the
properties "message", "type", and "arguments" on all of them, which
potentially have similar issues.

R=danno@chromium.org
BUG=69187
TEST=

Review URL: https://chromiumcodereview.appspot.com/10234004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11529 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/messages.js
test/mjsunit/error-constructors.js