Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 9ba7236e4200b3bd7f9074140dda6066064c35b4..2d06178bf2ea341a8ebf8a38f8a63ad85994de88 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1236,7 +1236,10 @@ void AstGraphBuilder::VisitTryCatchStatement(TryCatchStatement* stmt) { |
try_control.BeginTry(); |
{ |
ControlScopeForCatch scope(this, &try_control); |
+ STATIC_ASSERT(TryBlockConstant::kElementCount == 1); |
+ environment()->Push(current_context()); |
Visit(stmt->try_block()); |
+ environment()->Pop(); |
} |
try_control.EndTry(); |
@@ -1283,7 +1286,10 @@ void AstGraphBuilder::VisitTryFinallyStatement(TryFinallyStatement* stmt) { |
try_control.BeginTry(); |
{ |
ControlScopeForFinally scope(this, commands, &try_control); |
+ STATIC_ASSERT(TryBlockConstant::kElementCount == 1); |
+ environment()->Push(current_context()); |
Visit(stmt->try_block()); |
+ environment()->Pop(); |
} |
try_control.EndTry(commands->GetFallThroughToken(), fallthrough_result); |