| Index: src/ast/scopes.h
|
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h
|
| index 5be698fc1027b767726716467f95da37f142a5db..3650e2bdd8f82cf671eca910aff3c5429556fa04 100644
|
| --- a/src/ast/scopes.h
|
| +++ b/src/ast/scopes.h
|
| @@ -819,6 +819,7 @@ class DeclarationScope : public Scope {
|
| // adjusting the scope of temporaries used when desugaring parameter
|
| // initializers.
|
| void AddTemporary(Variable* var) {
|
| + DCHECK(!already_resolved());
|
| // Temporaries are only placed in ClosureScopes.
|
| DCHECK_EQ(GetClosureScope(), this);
|
| temps_.Add(var, zone());
|
|
|