| Index: src/full-codegen.cc
|
| diff --git a/src/full-codegen.cc b/src/full-codegen.cc
|
| index 79427524860b3c1d99e26a443f606969ff9deb0a..b635074b3a09baefdaa42a80f20a444bafb679ed 100644
|
| --- a/src/full-codegen.cc
|
| +++ b/src/full-codegen.cc
|
| @@ -959,9 +959,11 @@ void FullCodeGenerator::VisitWithStatement(WithStatement* stmt) {
|
| __ CallRuntime(Runtime::kPushWithContext, 2);
|
| StoreToFrameField(StandardFrameConstants::kContextOffset, context_register());
|
|
|
| + Scope* saved_scope = scope();
|
| { WithOrCatch body(this);
|
| Visit(stmt->statement());
|
| }
|
| + scope_ = saved_scope;
|
|
|
| // Pop context.
|
| LoadContextField(context_register(), Context::PREVIOUS_INDEX);
|
|
|