| Index: src/ast/scopes.h
|
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h
|
| index b1e2c2894df4bcf93e063acda6d2e608dcce2df6..478470eadbc776c83df449469e3ac99f8dda4897 100644
|
| --- a/src/ast/scopes.h
|
| +++ b/src/ast/scopes.h
|
| @@ -791,10 +791,12 @@ class DeclarationScope : public Scope {
|
| // Make sure this closure and all outer closures are eagerly compiled.
|
| void ForceEagerCompilation() {
|
| DCHECK_EQ(this, GetClosureScope());
|
| - for (DeclarationScope* s = this; !s->is_script_scope();
|
| + DeclarationScope* s;
|
| + for (s = this; !s->is_script_scope();
|
| s = s->outer_scope()->GetClosureScope()) {
|
| s->force_eager_compilation_ = true;
|
| }
|
| + s->force_eager_compilation_ = true;
|
| }
|
|
|
| #ifdef DEBUG
|
|
|