Commit fd3edaf0 authored by ager@chromium.org's avatar ager@chromium.org

Fix name of the toString method on error objects. Bug caught by layout tests.

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
parent 2b4767b5
...@@ -1014,6 +1014,8 @@ function errorToString() { ...@@ -1014,6 +1014,8 @@ function errorToString() {
var message = this.hasOwnProperty("message") ? (": " + this.message) : ""; var message = this.hasOwnProperty("message") ? (": " + this.message) : "";
return this.name + message; return this.name + message;
} }
%FunctionSetName(errorToString, 'toString');
%SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM); %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment