diff --git a/src/ast/scopeinfo.cc b/src/ast/scopeinfo.cc index a9e824f415..92de295288 100644 --- a/src/ast/scopeinfo.cc +++ b/src/ast/scopeinfo.cc @@ -193,9 +193,7 @@ Handle ScopeInfo::Create(Isolate* isolate, Zone* zone, DCHECK(index == scope_info->length()); DCHECK(scope->num_parameters() == scope_info->ParameterCount()); - DCHECK(scope->num_heap_slots() == scope_info->ContextLength() || - (scope->num_heap_slots() == kVariablePartIndex && - scope_info->ContextLength() == 0)); + DCHECK(scope->num_heap_slots() == scope_info->ContextLength()); return scope_info; }