v8/test/cctest
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
..
cctest.cc Add size_t length argument to v8::ArrayBuffer::Allocator::Free. 2013-08-02 13:03:06 +00:00
cctest.gyp Revert the latest set of platform changes. 2013-07-31 07:51:46 +00:00
cctest.h Make GlobalHandle::NodeBlock deletable 2013-08-05 07:34:29 +00:00
cctest.status Do not allow external strings in old pointer space. 2013-07-26 12:32:06 +00:00
gay-fixed.cc Dtoa for fixed notation. 2010-05-05 13:51:27 +00:00
gay-fixed.h Dtoa for fixed notation. 2010-05-05 13:51:27 +00:00
gay-precision.cc Added precision mode to fast-dtoa. 2010-09-20 09:18:00 +00:00
gay-precision.h Added precision mode to fast-dtoa. 2010-09-20 09:18:00 +00:00
gay-shortest.cc Dtoa for fixed notation. 2010-05-05 13:51:27 +00:00
gay-shortest.h Dtoa for fixed notation. 2010-05-05 13:51:27 +00:00
log-eq-of-logging-and-traversal.js Eliminate the need for code delete events in CPU profiler. 2011-09-14 11:47:03 +00:00
test-accessors.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-alloc.cc Deprecate FACTORY helper macro. 2013-06-04 10:30:05 +00:00
test-api.cc Improve internal stringifcation for custom Error objects. 2013-08-06 13:58:21 +00:00
test-assembler-arm.cc Fix a crash when generating forward jumps to labels at very high assembly offsets 2013-08-01 08:13:08 +00:00
test-assembler-ia32.cc Revert new OS and CC detection and related changes since r15923. 2013-07-29 12:12:39 +00:00
test-assembler-mips.cc MIPS: Fix cctest/test-assembler-mips on MIPS32R1 architecture. 2013-06-19 17:15:21 +00:00
test-assembler-x64.cc Revert new OS and CC detection and related changes since r15923. 2013-07-29 12:12:39 +00:00
test-ast.cc Get rid of ZoneScope completely. 2013-06-26 13:36:16 +00:00
test-bignum-dtoa.cc Fix X64 compilation on Windows. 2011-02-03 11:13:04 +00:00
test-bignum.cc Bignum implementation of Strtod. 2010-11-08 11:49:47 +00:00
test-circular-queue.cc Fix data race in SamplingCircularQueue 2013-07-18 13:42:04 +00:00
test-code-stubs-ia32.cc Extract hardcoded error strings into a single place and replace them with enum. 2013-08-02 09:53:11 +00:00
test-code-stubs-x64.cc Extract hardcoded error strings into a single place and replace them with enum. 2013-08-02 09:53:11 +00:00
test-code-stubs.cc x64 support for d-to-i (truncated) 2013-07-19 08:21:41 +00:00
test-code-stubs.h x64 support for d-to-i (truncated) 2013-07-19 08:21:41 +00:00
test-compiler.cc Pipe a script's CORS status through V8 during compilation. 2013-07-30 17:05:50 +00:00
test-conversions.cc Add support for explicit octal and binary integer literals 2013-07-19 09:57:35 +00:00
test-cpu-profiler.cc Return start/end profiling time in microseconds instead of milliseconds 2013-08-06 08:00:58 +00:00
test-dataflow.cc Get rid of ZoneScope completely. 2013-06-26 13:36:16 +00:00
test-date.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-debug.cc Revert the latest set of platform changes. 2013-07-31 07:51:46 +00:00
test-declarative-accessors.cc remove most uses of raw handle constructors 2013-06-13 09:27:09 +00:00
test-decls.cc remove all old style callbacks - patch 3 2013-06-20 12:28:27 +00:00
test-deoptimization.cc Re-revert "Flush parallel recompilation queues on context dispose notification" (r15883). 2013-07-30 08:35:48 +00:00
test-dictionary.cc Disable stress_compaction flag in several GC tests to meet test 2013-06-19 08:58:09 +00:00
test-disasm-arm.cc ARM: Make double registers low/high safe 2013-07-25 15:04:38 +00:00
test-disasm-ia32.cc Deprecate FACTORY helper macro. 2013-06-04 10:30:05 +00:00
test-disasm-mips.cc Unify the way cctest initalizes the VM for each test case. 2013-04-10 08:29:39 +00:00
test-disasm-x64.cc Unify the way cctest initalizes the VM for each test case. 2013-04-10 08:29:39 +00:00
test-diy-fp.cc Add missing license headers. 2013-03-07 11:12:26 +00:00
test-double.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-dtoa.cc Fix compilation on 64-bit Windows, update Visual Studio projects. 2011-02-03 13:29:10 +00:00
test-fast-dtoa.cc Add missing license headers. 2013-03-07 11:12:26 +00:00
test-fixed-dtoa.cc Dtoa for fixed notation. 2010-05-05 13:51:27 +00:00
test-flags.cc Ensure removing processed command line arguments. 2012-06-13 15:02:05 +00:00
test-func-name-inference.cc Deprecate FACTORY helper macro. 2013-06-04 10:30:05 +00:00
test-global-handles.cc Un-revert "Implement simple effect typing for variables" and "Handle switch effects" 2013-08-06 12:57:23 +00:00
test-global-object.cc remove most uses of raw handle constructors 2013-06-13 09:27:09 +00:00
test-hashing.cc Clean up the usage of V8_TARGET_ARCH_${arch} and V8_HOST_ARCH_${arch} 2013-06-28 15:34:48 +00:00
test-hashmap.cc Make the hash map test run faster by doing less work. 2009-05-15 13:49:00 +00:00
test-heap-profiler.cc Do not report unessential weak references in heap snapshot. 2013-07-17 18:23:16 +00:00
test-heap.cc More cleanup regarding the maximum non-large object allocation size. 2013-08-05 12:52:53 +00:00
test-list.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-liveedit.cc Get rid of ZoneScope completely. 2013-06-26 13:36:16 +00:00
test-lock.cc Revert the latest set of platform changes. 2013-07-31 07:51:46 +00:00
test-lockers.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-log-stack-tracer.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-log.cc Remove --prof-auto flag 2013-07-26 13:18:56 +00:00
test-macro-assembler-x64.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-mark-compact.cc Simplified large object allocation strategy. 2013-07-23 20:01:38 +00:00
test-object-observe.cc [Object.observe] Lazily allocate callbackInfo structure 2013-07-15 22:16:30 +00:00
test-parsing.cc Add support for explicit octal and binary integer literals 2013-07-19 09:57:35 +00:00
test-platform-linux.cc Revert the latest set of platform changes. 2013-07-31 07:51:46 +00:00
test-platform-macos.cc Add missing license headers. 2013-03-07 11:12:26 +00:00
test-platform-nullos.cc Revert the latest set of platform changes. 2013-07-31 07:51:46 +00:00
test-platform-tls.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-platform-win32.cc Make gyp work with MingW32 2013-04-15 08:33:31 +00:00
test-platform.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-profile-generator.cc Simplify sampling rate calculation 2013-07-30 07:01:16 +00:00
test-random.cc Deprecate FACTORY helper macro. 2013-06-04 10:30:05 +00:00
test-regexp.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-reloc-info.cc Merge experimental/gc branch to the bleeding_edge. 2011-09-19 18:36:47 +00:00
test-serialize.cc Remove unused counters 2013-06-19 16:50:38 +00:00
test-sockets.cc Add missing license headers. 2013-03-07 11:12:26 +00:00
test-spaces.cc Use MemoryChunk-based allocation for deoptimization entry code 2013-01-29 09:09:55 +00:00
test-strings.cc Make GlobalHandle::NodeBlock deletable 2013-08-05 07:34:29 +00:00
test-strtod.cc Add missing license headers. 2013-03-07 11:12:26 +00:00
test-symbols.cc remove most V8_ALLOW_ACCESS_TO_* defines from test classes 2013-05-28 11:54:52 +00:00
test-thread-termination.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-threads.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-types.cc Keep two empty lines between declarations for cpp files 2013-07-05 09:52:11 +00:00
test-unbound-queue.cc Add missing license headers. 2013-03-07 11:12:26 +00:00
test-utils.cc Replace OS::MemCopy with OS::MemMove (just as fast but more flexible). 2013-04-16 12:30:51 +00:00
test-version.cc Update V8 to version 3.0 (re-land r5920). 2010-12-07 11:31:57 +00:00
test-weakmaps.cc remove old MakeWeak 2013-06-03 08:17:04 +00:00
test-weaksets.cc ES6: Implement WeakSet 2013-07-22 08:32:24 +00:00
test-weaktypedarrays.cc API for DataView. 2013-06-24 11:23:50 +00:00
testcfg.py Remove SCons related files 2013-04-18 11:01:14 +00:00