v8/test
yangguo@chromium.org 8fb95efdda Improve internal stringifcation for custom Error objects.
If an developer attempts to "subclass" Error by running
`MyError.prototype = new Error();`, then the internal v8::Message object
that's produced and handed off to `window.onerror` handlers is poorly
stringified as "[object Object]".

This patch adjusts the stringification process for these objects to
include not only native Error objects, but also objects that have Error
in their prototype chain, and haven't overwritten Error.toString with
some custom variant.

BUG=2822
R=mstarzinger@chromium.org, yangguo@chromium.org

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

Patch from Mike West <mkwst@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16075 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-08-06 13:58:21 +00:00
..
benchmarks Add "benchmarks" test suite 2013-08-05 14:54:09 +00:00
cctest Improve internal stringifcation for custom Error objects. 2013-08-06 13:58:21 +00:00
intl Reenable tests that need to access the default timezone. 2013-08-01 19:43:06 +00:00
message Migrate blink tests that are not relevant to blink into a new V8 test suite called 'blink'. 2013-06-26 14:23:30 +00:00
mjsunit I found this working on 2013-08-06 13:49:10 +00:00
mozilla Remove SCons related files 2013-04-18 11:01:14 +00:00
preparser Remove SCons related files 2013-04-18 11:01:14 +00:00
test262 Fix bogus arguments length check in StringLocaleCompare. 2013-05-10 13:50:10 +00:00
webkit Skip recently added test associated with bug id 2013-07-31 06:36:29 +00:00