Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 348c6b61ab2f4b3da1de8ff7f077f61f52ce98b8..87640490ee8682f31f58b0e5f5814955b9989013 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -110,7 +110,8 @@ 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, kind); |
+ Scope* function_scope = NewScope( |
+ scope_, IsArrowFunction(kind) ? ARROW_SCOPE : FUNCTION_SCOPE, kind); |
PreParserFactory function_factory(NULL); |
FunctionState function_state(&function_state_, &scope_, function_scope, kind, |
&function_factory); |