Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 51914874a9221c859816dfbf39e87203e973e1db..8c208b42f1e26dd75779e051b40bcfe14e81d180 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -136,7 +136,7 @@ PreParser::PreParseResult PreParser::PreParseLazyFunction( |
FunctionState top_state(&function_state_, &scope_state_, top_scope, |
kNormalFunction, &top_factory); |
scope()->SetLanguageMode(language_mode); |
- Scope* function_scope = NewFunctionScope(scope(), kind); |
+ Scope* function_scope = NewFunctionScope(kind); |
if (!has_simple_parameters) function_scope->SetHasNonSimpleParameters(); |
PreParserFactory function_factory(nullptr); |
FunctionState function_state(&function_state_, &scope_state_, function_scope, |
@@ -1111,7 +1111,7 @@ PreParser::Expression PreParser::ParseFunctionLiteral( |
// Parse function body. |
bool outer_is_script_scope = scope()->is_script_scope(); |
- Scope* function_scope = NewFunctionScope(scope(), kind); |
+ Scope* function_scope = NewFunctionScope(kind); |
function_scope->SetLanguageMode(language_mode); |
PreParserFactory factory(NULL); |
FunctionState function_state(&function_state_, &scope_state_, function_scope, |