Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 3dca827c92738d398bb2dd2639d81a19ca082f34..2644b4374ad8c16deb50ee22db604f045a3d6fd3 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -110,7 +110,7 @@ PreParser::PreParseResult PreParser::PreParseLazyFunction( |
FunctionState top_state(&function_state_, &scope_, top_scope, kNormalFunction, |
&top_factory); |
scope_->SetLanguageMode(language_mode); |
- Scope* function_scope = NewScope(scope_, FUNCTION_SCOPE); |
+ Scope* function_scope = NewScope(scope_, FUNCTION_SCOPE, kind); |
PreParserFactory function_factory(NULL); |
FunctionState function_state(&function_state_, &scope_, function_scope, kind, |
&function_factory); |
@@ -1028,7 +1028,7 @@ PreParser::Expression PreParser::ParseFunctionLiteral( |
// Parse function body. |
bool outer_is_script_scope = scope_->is_script_scope(); |
- Scope* function_scope = NewScope(scope_, FUNCTION_SCOPE); |
+ Scope* function_scope = NewScope(scope_, FUNCTION_SCOPE, kind); |
PreParserFactory factory(NULL); |
FunctionState function_state(&function_state_, &scope_, function_scope, kind, |
&factory); |