| Index: src/ast/scopes.cc
|
| diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
|
| index 293506e4cd5c67ef93bc10404f1d23d9d12b4223..ddc6361f3e31ec063605ff3c3621bd5491c62ebe 100644
|
| --- a/src/ast/scopes.cc
|
| +++ b/src/ast/scopes.cc
|
| @@ -1119,9 +1119,7 @@ bool Scope::AllowsLazyParsingWithoutUnresolvedVariables() const {
|
| // inner scopes to find out how to allocate variables on the block scope. At
|
| // this point, declarations may not have yet been parsed.
|
| for (const Scope* s = this; s != nullptr; s = s->outer_scope_) {
|
| - if (s->is_block_scope()) return false;
|
| - // TODO(marja): Refactor parsing modes: also add s->is_function_scope()
|
| - // here.
|
| + if (s->is_block_scope() || s->is_function_scope()) return false;
|
| }
|
| return true;
|
| }
|
|
|