Return the empty string when formatting recursive error messages. This
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 21 Jan 2011 11:44:29 +0000 (11:44 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 21 Jan 2011 11:44:29 +0000 (11:44 +0000)
commitca146805561068e67f4d1d2ba624277712be0226
tree0fc92ec8b3ca3f8b8be96b71cc70d3da6197b5e9
parentfd250a22448a5e352c01f9eb74e50250f503f490
Return the empty string when formatting recursive error messages. This
matches the behavior of Safari and Firefox. Our old behavior was to
throw a stack overflow exception.

BUG=crbug.com/70334
TEST=mjsunit/cyclic-error-to-string.js

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6428 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/messages.js
test/mjsunit/cyclic-error-to-string.js [new file with mode: 0644]