| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 23b12e1c8d2260537b8c3b1c32ec27752da87380..15a9a0e62af9985713062d2501f5639c90c14277 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -563,7 +563,8 @@ class ParserTraits {
|
| ZoneList<v8::internal::Statement*>* NewStatementList(int size, Zone* zone) {
|
| return new(zone) ZoneList<v8::internal::Statement*>(size, zone);
|
| }
|
| - V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type);
|
| + V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type,
|
| + FunctionKind kind = kNormalFunction);
|
|
|
| // Utility functions
|
| int DeclareArrowParametersFromExpression(Expression* expression, Scope* scope,
|
| @@ -852,7 +853,8 @@ class Parser : public ParserBase<ParserTraits> {
|
|
|
| // Factory methods.
|
|
|
| - Scope* NewScope(Scope* parent, ScopeType type);
|
| + Scope* NewScope(Scope* parent, ScopeType type,
|
| + FunctionKind kind = kNormalFunction);
|
|
|
| FunctionLiteral* DefaultConstructor(bool call_super, Scope* scope, int pos,
|
| int end_pos);
|
| @@ -913,8 +915,9 @@ bool ParserTraits::IsFutureStrictReserved(
|
| }
|
|
|
|
|
| -Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type) {
|
| - return parser_->NewScope(parent_scope, scope_type);
|
| +Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type,
|
| + FunctionKind kind) {
|
| + return parser_->NewScope(parent_scope, scope_type, kind);
|
| }
|
|
|
|
|
|
|