Make the 'name' property on error prototypes read-only and dont-delete
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Jan 2011 12:51:04 +0000 (12:51 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Jan 2011 12:51:04 +0000 (12:51 +0000)
commitc1306244a63e5fae7890b267e7e5123387873e36
tree361829e99b72679951867d614ceeb7eb0518f9d6
parent199846b786eeb4790fb8b1b0c885ec13bfa4c621
Make the 'name' property on error prototypes read-only and dont-delete
to avoid leaking of error objects to accessor methods when formatting
error messages internally.

Also, do not call overwritten toString methods on error objects when
formatting messages internally.

Review URL: http://codereview.chromium.org/6272004

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