| Index: src/ast/scopes.cc
|
| diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
|
| index 2bc9b3af64ad656c2719475fd98d800ec13492c1..aa7a30813ccf0caab6c1b394242bb3fdb5b71729 100644
|
| --- a/src/ast/scopes.cc
|
| +++ b/src/ast/scopes.cc
|
| @@ -2260,8 +2260,10 @@ void Scope::AllocateDebuggerScopeInfos(Isolate* isolate,
|
| }
|
| MaybeHandle<ScopeInfo> outer = NeedsContext() ? scope_info_ : outer_scope;
|
| for (Scope* scope = inner_scope_; scope != nullptr; scope = scope->sibling_) {
|
| - if (scope->is_function_scope()) continue;
|
| - scope->AllocateDebuggerScopeInfos(isolate, outer);
|
| + if (!scope->is_function_scope() ||
|
| + scope->AsDeclarationScope()->is_arrow_scope()) {
|
| + scope->AllocateDebuggerScopeInfos(isolate, outer);
|
| + }
|
| }
|
| }
|
|
|
|
|