Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 26190b832874835b8553c695a4c4aabe44d3aeca..f58cc6a09c2b2caa81d758f8294d60984e4f5370 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -562,7 +562,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, |
@@ -856,7 +857,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); |
@@ -916,8 +918,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); |
} |