Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index ad0df2b33e7a6d3e5848dc99ac4de97f790bb86e..3402188648f928c5b35a63d1d7645f8f6705370e 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -1743,6 +1743,7 @@ void DeclarationScope::AllocateParameterLocals() { |
DCHECK(!has_rest_ || var != rest_parameter()); |
DCHECK_EQ(this, var->scope()); |
if (uses_sloppy_arguments) { |
+ var->set_is_used(); |
var->ForceContextAllocation(); |
} |
AllocateParameter(var, i); |