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