Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index cce143a38d3841189ff19cf3510b1edd8409f0f1..4b5dbe6a6b678fe30f3bb1635e11405babeded40 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1480,7 +1480,8 @@ void AstGraphBuilder::VisitTryCatchStatement(TryCatchStatement* stmt) { |
// Create a catch scope that binds the exception. |
Node* exception = try_control.GetExceptionNode(); |
Handle<String> name = stmt->variable()->name(); |
- const Operator* op = javascript()->CreateCatchContext(name); |
+ Handle<ScopeInfo> scope_info = stmt->scope()->scope_info(); |
+ const Operator* op = javascript()->CreateCatchContext(name, scope_info); |
Node* context = NewNode(op, exception, GetFunctionClosureForContext()); |
// Evaluate the catch-block. |