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) { |