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

Unified Diff: src/messages.js

Issue 1310573003: . (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/messages.cc ('k') | src/prologue.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 f0d241aebc8031a3679f09e5369fbc0d5ace52c9..a73e04d3eb6bcdbf50c26d8fb4096e6f400eea41 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -4,15 +4,6 @@
// -------------------------------------------------------------------
-var $errorToString;
-var MakeError;
-var MakeEvalError;
-var MakeRangeError;
-var MakeReferenceError;
-var MakeSyntaxError;
-var MakeTypeError;
-var MakeURIError;
-
(function(global, utils) {
%CheckIsBootstrapping();
@@ -976,8 +967,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);
}
@@ -1018,20 +1007,21 @@ GlobalError.captureStackTrace = captureStackTrace;
utils.ExportToRuntime(function(to) {
to.Error = GlobalError;
+ to.ErrorToString = ErrorToString;
to.EvalError = GlobalEvalError;
- to.RangeError = GlobalRangeError;
- to.ReferenceError = GlobalReferenceError;
- to.SyntaxError = GlobalSyntaxError;
- to.TypeError = GlobalTypeError;
- to.URIError = GlobalURIError;
to.GetStackTraceLine = GetStackTraceLine;
- to.NoSideEffectToString = NoSideEffectToString;
- to.ToDetailString = ToDetailString;
to.MakeError = MakeGenericError;
- to.MessageGetLineNumber = GetLineNumber;
to.MessageGetColumnNumber = GetColumnNumber;
+ to.MessageGetLineNumber = GetLineNumber;
to.MessageGetSourceLine = GetSourceLine;
+ to.NoSideEffectToString = NoSideEffectToString;
+ to.RangeError = GlobalRangeError;
+ to.ReferenceError = GlobalReferenceError;
to.StackOverflowBoilerplate = StackOverflowBoilerplate;
+ to.SyntaxError = GlobalSyntaxError;
+ to.ToDetailString = ToDetailString;
+ to.TypeError = GlobalTypeError;
+ to.URIError = GlobalURIError;
});
});
« no previous file with comments | « src/messages.cc ('k') | src/prologue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698