Reviewers: Søren Gjesse,
Description:
Fix name of the toString method on error objects. Bug caught by layout
tests.
[email protected]
Please review this at http://codereview.chromium.org/6258004/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/messages.js
Index: src/messages.js
===================================================================
--- src/messages.js (revision 6327)
+++ src/messages.js (working copy)
@@ -1014,6 +1014,8 @@
var message = this.hasOwnProperty("message") ? (": " +
this.message) : "";
return this.name + message;
}
+
+%FunctionSetName(errorToString, 'toString');
%SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev