Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index 4c4729e69ceee1d55624ddc4d278e3dec1b92495..833198ca0d4b9af508a272a7d81c83b80ba70c77 100644 |
--- a/src/scopes.cc |
+++ b/src/scopes.cc |
@@ -1266,7 +1266,7 @@ void Scope::AllocateParameterLocals() { |
for (int i = params_.length() - 1; i >= 0; --i) { |
Variable* var = params_[i]; |
ASSERT(var->scope() == this); |
- if (uses_sloppy_arguments) { |
+ if (uses_sloppy_arguments || has_forced_context_allocation()) { |
// Force context allocation of the parameter. |
var->ForceContextAllocation(); |
} |