| Index: src/scopes.cc
|
| diff --git a/src/scopes.cc b/src/scopes.cc
|
| index dbcc4b60832bf33d5e096bab9f2634128263b25b..d23a45425a65888194b7a469bdc769643917572f 100644
|
| --- a/src/scopes.cc
|
| +++ b/src/scopes.cc
|
| @@ -548,15 +548,16 @@ Variable* Scope::DeclareDynamicGlobal(const AstRawString* name) {
|
| }
|
|
|
|
|
| -void Scope::RemoveUnresolved(VariableProxy* var) {
|
| +bool Scope::RemoveUnresolved(VariableProxy* var) {
|
| // Most likely (always?) any variable we want to remove
|
| // was just added before, so we search backwards.
|
| for (int i = unresolved_.length(); i-- > 0;) {
|
| if (unresolved_[i] == var) {
|
| unresolved_.Remove(i);
|
| - return;
|
| + return true;
|
| }
|
| }
|
| + return false;
|
| }
|
|
|
|
|
|
|