| Index: src/ast/scopes.h
|
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h
|
| index 44797525ca5153c7f96c9387ff22e33deba30717..6b6c95a4df4f9c4f516ab2c90aa91197cdf9c440 100644
|
| --- a/src/ast/scopes.h
|
| +++ b/src/ast/scopes.h
|
| @@ -444,8 +444,9 @@ class Scope: public ZoneObject {
|
| // A lazily parsed scope doesn't contain enough information to create a
|
| // ScopeInfo from it.
|
| if (is_lazily_parsed_) return false;
|
| - return NeedsContext() || is_script_scope() || is_function_scope() ||
|
| - is_eval_scope() || is_module_scope();
|
| + // The debugger expects all functions to have scope infos.
|
| + if (is_function_scope()) return true;
|
| + return NeedsContext();
|
| }
|
|
|
| Zone* zone_;
|
|
|