Another fix for leaking error objects. User code can overwrite
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 25 Jan 2011 08:48:59 +0000 (08:48 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 25 Jan 2011 08:48:59 +0000 (08:48 +0000)
commitd69ef26f7d5a9186a5e1a4da0be9cdbe1f2f2a7e
tree1ac0f40c2330fefa7d313e75ff3eeefe57f68a2d
parentd5cab38a3358cf03aba682ae9904c76d7897109e
Another fix for leaking error objects. User code can overwrite
ReferenceError.prototype.__proto__ which will make "error instanceof
Error" fail. However, the ReferenceError.prototype object itself
cannot be modified. Therefore, the error checks must check for
concrete error instances instead of only checking for Error.

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

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