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; |
}); |
}); |