Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index 96c04d2e8c745644222d11365265b3fe61be5414..4e234763341d9e1e205cb977222279e9f435355f 100644 |
--- a/src/scopes.cc |
+++ b/src/scopes.cc |
@@ -373,6 +373,11 @@ Scope* Scope::FinalizeBlockScope() { |
outer_scope()->unresolved_.Add(unresolved_[i], zone()); |
} |
+ // Propagate usage flags to outer scope. |
+ if (uses_arguments()) outer_scope_->RecordArgumentsUsage(); |
+ if (uses_super()) outer_scope_->RecordSuperUsage(); |
+ if (uses_this()) outer_scope_->RecordThisUsage(); |
+ |
return NULL; |
} |