| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 4a8c37def5769f9da37c23ddc0d39e6523e33f5c..31ecf58e31ff88076486899dcf33f2caba2de66e 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -107,7 +107,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);
|
| + Scope* function_scope =
|
| + NewScope(scope_, IsArrowFunction(kind) ? ARROW_SCOPE : FUNCTION_SCOPE);
|
| PreParserFactory function_factory(NULL);
|
| FunctionState function_state(&function_state_, &scope_, function_scope, kind,
|
| &function_factory);
|
| @@ -995,7 +996,7 @@ void PreParser::ParseLazyFunctionLiteralBody(bool* ok) {
|
| log_->LogFunction(body_start, body_end,
|
| function_state_->materialized_literal_count(),
|
| function_state_->expected_property_count(), language_mode(),
|
| - scope_->uses_super_property());
|
| + scope_->uses_super_property(), scope_->uses_new_target());
|
| }
|
|
|
|
|
|
|