Revision: 6328
Author: [email protected]
Date: Fri Jan 14 06:51:19 2011
Log: Fix name of the toString method on error objects. Bug caught by layout tests.

[email protected]
Review URL: http://codereview.chromium.org/6258004
http://code.google.com/p/v8/source/detail?r=6328

Modified:
 /branches/bleeding_edge/src/messages.js

=======================================
--- /branches/bleeding_edge/src/messages.js     Fri Jan 14 04:51:04 2011
+++ /branches/bleeding_edge/src/messages.js     Fri Jan 14 06:51:19 2011
@@ -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

Reply via email to