Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 9ba68953e28b0dccfac1e97a69efba0698636a6c..15fb310b030f67c87f5b5c947f81210a98dedfc3 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -543,7 +543,7 @@ class ParserTraits { |
Type::ExpressionClassifier* classifier, int pos, bool* ok); |
V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type); |
- V8_INLINE Scope* NewFunctionScope(Scope* parent_scope, FunctionKind kind); |
+ V8_INLINE Scope* NewFunctionScope(FunctionKind kind); |
V8_INLINE void AddFormalParameter(ParserFormalParameters* parameters, |
Expression* pattern, |
@@ -1048,7 +1048,7 @@ class Parser : public ParserBase<ParserTraits> { |
// Factory methods. |
FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super, |
- Scope* scope, int pos, int end_pos, |
+ int pos, int end_pos, |
LanguageMode language_mode); |
// Skip over a lazy function, either using cached data if we have it, or |
@@ -1147,8 +1147,8 @@ Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type) { |
return parser_->NewScope(parent_scope, scope_type); |
} |
-Scope* ParserTraits::NewFunctionScope(Scope* parent_scope, FunctionKind kind) { |
- return parser_->NewFunctionScope(parent_scope, kind); |
+Scope* ParserTraits::NewFunctionScope(FunctionKind kind) { |
+ return parser_->NewFunctionScope(kind); |
} |
const AstRawString* ParserTraits::EmptyIdentifierString() { |