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

Unified Diff: src/js/messages.js

Issue 1404943002: Use import/export for more functions (instead of js builtins object). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « src/js/math.js ('k') | src/js/object-observe.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/messages.js
diff --git a/src/js/messages.js b/src/js/messages.js
index 5441cfe34a71970912e7b8c1fe01730b8d573b1d..387a136c6e955db44f0e345189f10e5826087269 100644
--- a/src/js/messages.js
+++ b/src/js/messages.js
@@ -4,7 +4,6 @@
// -------------------------------------------------------------------
-var $errorToString;
var MakeError;
var MakeEvalError;
var MakeRangeError;
@@ -983,8 +982,6 @@ function ErrorToString() {
utils.InstallFunctions(GlobalError.prototype, DONT_ENUM,
['toString', ErrorToString]);
-$errorToString = ErrorToString;
-
MakeError = function(type, arg0, arg1, arg2) {
return MakeGenericError(GlobalError, type, arg0, arg1, arg2);
}
@@ -1043,4 +1040,8 @@ GlobalError.captureStackTrace = captureStackTrace;
"uri_error_function", GlobalURIError,
]);
+utils.Export(function(to) {
+ to.ErrorToString = ErrorToString;
+});
+
});
« no previous file with comments | « src/js/math.js ('k') | src/js/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698