Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 04c4262a83d48fd0791a7f6fa57590020d6b3253..c49b26f45ead9cc877824aa47cfe1461a9828c38 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -721,8 +721,8 @@ void FullCodeGenerator::EmitDeclaration(VariableProxy* proxy, |
// need to "declare" it at runtime to make sure it actually exists in the |
// local context. |
Variable* variable = proxy->var(); |
- bool binding_needs_init = |
- mode == CONST || mode == CONST_HARMONY || mode == LET; |
+ bool binding_needs_init = (function == NULL) && |
+ (mode == CONST || mode == CONST_HARMONY || mode == LET); |
switch (variable->location()) { |
case Variable::UNALLOCATED: |
++(*global_count); |