| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index cde46b0eb61fc74cc155d4c4cd1b897ed5b444a0..bc96d30cc9075dd0fc7b6be2433219759955611f 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -731,8 +731,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);
|
|
|