| Index: src/pattern-rewriter.cc
|
| diff --git a/src/pattern-rewriter.cc b/src/pattern-rewriter.cc
|
| index f2c1240b9c5e0f98b0dd24e3aba1cb702f81ff2f..e96aef8ba2ffbad5031d69ea2c749e1394493f83 100644
|
| --- a/src/pattern-rewriter.cc
|
| +++ b/src/pattern-rewriter.cc
|
| @@ -158,7 +158,7 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) {
|
| // we're in a with. The initialization value should not
|
| // necessarily be stored in the global object in that case,
|
| // which is why we need to generate a separate assignment node.
|
| - if (value != NULL && !inside_with()) {
|
| + if (value != NULL && !descriptor_->scope->inside_with()) {
|
| arguments->Add(value, zone());
|
| value = NULL; // zap the value to avoid the unnecessary assignment
|
| // Construct the call to Runtime_InitializeVarGlobal
|
|
|