Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index a7a31e7173593e67036cf4ffb9de14bb79f2e478..9ccfb1f1f81f32e5143fc5e4bdd91033279f897d 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -4021,7 +4021,8 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
Scope* declaration_scope = scope_->DeclarationScope(); |
Scope* original_declaration_scope = original_scope_->DeclarationScope(); |
Scope* scope = function_type == FunctionLiteral::DECLARATION && |
- is_sloppy(language_mode) && !allow_harmony_sloppy() && |
+ is_sloppy(language_mode) && |
+ !allow_harmony_sloppy_function() && |
(original_scope_ == original_declaration_scope || |
declaration_scope != original_declaration_scope) |
? NewScope(declaration_scope, FUNCTION_SCOPE, kind) |