| Index: src/scopes.cc
|
| diff --git a/src/scopes.cc b/src/scopes.cc
|
| index 4aca42042233652d3ad0b597804793652e8b106d..d2618c871b268878c09b9fa5338ebc1653fd534d 100644
|
| --- a/src/scopes.cc
|
| +++ b/src/scopes.cc
|
| @@ -529,7 +529,7 @@ void Scope::RemoveUnresolved(VariableProxy* var) {
|
|
|
| Variable* Scope::NewTemporary(const AstRawString* name) {
|
| DCHECK(!already_resolved());
|
| - Scope* scope = this->TemporaryScope();
|
| + Scope* scope = this->ClosureScope();
|
| Variable* var = new(zone()) Variable(scope,
|
| name,
|
| TEMPORARY,
|
| @@ -761,7 +761,7 @@ Scope* Scope::DeclarationScope() {
|
| }
|
|
|
|
|
| -Scope* Scope::TemporaryScope() {
|
| +Scope* Scope::ClosureScope() {
|
| Scope* scope = this;
|
| while (!scope->is_declaration_scope() || scope->is_block_scope()) {
|
| scope = scope->outer_scope();
|
|
|