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

Unified Diff: src/messages.js

Issue 1307963002: Native context: alpha sort slots and remove boilerplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename 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/json.js ('k') | src/object-observe.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..b67cdf027409ca616a2754382566011f5959b01a 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -1017,21 +1017,21 @@ captureStackTrace = function captureStackTrace(obj, cons_opt) {
GlobalError.captureStackTrace = captureStackTrace;
utils.ExportToRuntime(function(to) {
- to.Error = GlobalError;
- 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.MessageGetSourceLine = GetSourceLine;
- to.StackOverflowBoilerplate = StackOverflowBoilerplate;
+ to["error_function"] = GlobalError;
+ to["eval_error_function"] = GlobalEvalError;
+ to["get_stack_trace_line_fun"] = GetStackTraceLine;
+ to["make_error_function"] = MakeGenericError;
+ to["message_get_column_number"] = GetColumnNumber;
+ to["message_get_line_number"] = GetLineNumber;
+ to["message_get_source_line"] = GetSourceLine;
+ to["no_side_effect_to_string_fun"] = NoSideEffectToString;
+ to["range_error_function"] = GlobalRangeError;
+ to["reference_error_function"] = GlobalReferenceError;
+ to["stack_overflow_boilerplate"] = StackOverflowBoilerplate;
+ to["syntax_error_function"] = GlobalSyntaxError;
+ to["to_detail_string_fun"] = ToDetailString;
+ to["type_error_function"] = GlobalTypeError;
+ to["uri_error_function"] = GlobalURIError;
});
});
« no previous file with comments | « src/json.js ('k') | src/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698