Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 4b5dbe6a6b678fe30f3bb1635e11405babeded40..cb375dc494c5d5d0841a61beb1bfaa38b5e991ef 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1236,7 +1236,8 @@ void AstGraphBuilder::VisitWithStatement(WithStatement* stmt) { |
VisitForValue(stmt->expression()); |
Node* value = environment()->Pop(); |
Node* object = BuildToObject(value, stmt->ToObjectId()); |
- const Operator* op = javascript()->CreateWithContext(); |
+ Handle<ScopeInfo> scope_info = stmt->scope()->scope_info(); |
+ const Operator* op = javascript()->CreateWithContext(scope_info); |
Node* context = NewNode(op, object, GetFunctionClosureForContext()); |
PrepareFrameState(context, stmt->EntryId()); |
VisitInScope(stmt->statement(), stmt->scope(), context); |