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

Unified Diff: src/js/messages.js

Issue 2169563003: Revert of Remove stack overflow boilerplate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/isolate.cc ('k') | src/messages.h » ('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 e833522d4f32632aeb5e869847d6491751e2cfbd..f327fee18dae7b8c5bdae830a1827550b7975b5d 100644
--- a/src/js/messages.js
+++ b/src/js/messages.js
@@ -637,6 +637,10 @@
return MakeGenericError(GlobalURIError, kURIMalformed);
}
+// Boilerplate for exceptions for stack overflows. Used from
+// Isolate::StackOverflow().
+var StackOverflowBoilerplate = MakeRangeError(kStackOverflow);
+
%InstallToContext([
"error_format_stack_trace", FormatStackTrace,
"get_stack_trace_line_fun", GetStackTraceLine,
@@ -647,6 +651,7 @@
"message_get_line_number", GetLineNumber,
"message_get_source_line", GetSourceLine,
"no_side_effects_to_string_fun", NoSideEffectsToString,
+ "stack_overflow_boilerplate", StackOverflowBoilerplate,
]);
utils.Export(function(to) {
« no previous file with comments | « src/isolate.cc ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698