Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index c3dfd5ff261db65fa7ad2c1d148253ed4baa9967..fb027e9bfe5e49410c7bec98deae76838880cc35 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4049,6 +4049,9 @@ bool HGraphBuilder::TryInline(Call* expr) { |
CompilationInfo inner_info(target); |
if (!ParserApi::Parse(&inner_info) || |
!Scope::Analyze(&inner_info)) { |
+ if (Top::has_pending_exception()) { |
+ SetStackOverflow(); |
+ } |
return false; |
} |
FunctionLiteral* function = inner_info.function(); |