Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: src/messages.js

Issue 6588050: Remove Error.prototype.toStrings prototype property. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-1218.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index b7e57aa228ea22f7db50da0fabb2aecd8445e5f7..3f73706ffa57732b876c060eaa0b09fe587f21b1 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -1059,8 +1059,8 @@ function errorToString() {
}
}
-%FunctionSetName(errorToString, 'toString');
-%SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM);
+
+InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]);
// Boilerplate for exceptions for stack overflows. Used from
// Top::StackOverflow().
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-1218.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698