| Index: src/ast/scopeinfo.cc
|
| diff --git a/src/ast/scopeinfo.cc b/src/ast/scopeinfo.cc
|
| index 336f96ead18a7bfdca6a386b5f71527ef9a4aae3..7f69c931840698861ba327d9e43a6dba5d2f647b 100644
|
| --- a/src/ast/scopeinfo.cc
|
| +++ b/src/ast/scopeinfo.cc
|
| @@ -197,9 +197,7 @@ Handle<ScopeInfo> 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;
|
| }
|
|
|
|
|