Fix name of the toString method on error objects. Bug caught by layout tests.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Jan 2011 14:51:19 +0000 (14:51 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Jan 2011 14:51:19 +0000 (14:51 +0000)
TBR=sgjesse@chromium.org
Review URL: http://codereview.chromium.org/6258004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6328 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/messages.js

index ccc4bb1..a30ef8a 100644 (file)
@@ -1014,6 +1014,8 @@ function errorToString() {
   var message = this.hasOwnProperty("message") ? (": " + this.message) : "";
   return this.name + message;
 }
+
+%FunctionSetName(errorToString, 'toString');
 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM);