Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index 4e6acca5fc64ba5f6be60a0e70d6f739aa87dea4..fa86e11c0b64dd88f5d06bc8dd9d2d6ac21288af 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; |
} |