Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 8aab9198a490bf5265c59fd342d18234f8a8e26f..f3bd3a97b78e1f955aa81ac98fee62a590b74d69 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1708,9 +1708,10 @@ class PreParserTraits { |
return !tag.IsNoTemplateTag(); |
} |
- void AddFormalParameter( |
- PreParserFormalParameters* parameters, PreParserExpression pattern, |
- PreParserExpression initializer, bool is_rest) { |
+ void AddFormalParameter(PreParserFormalParameters* parameters, |
+ PreParserExpression pattern, |
+ PreParserExpression initializer, |
+ int initializer_end_position, bool is_rest) { |
++parameters->arity; |
} |
void DeclareFormalParameter(Scope* scope, PreParserIdentifier parameter, |
@@ -3837,7 +3838,8 @@ void ParserBase<Traits>::ParseFormalParameter( |
classifier->RecordNonSimpleParameter(); |
} |
- Traits::AddFormalParameter(parameters, pattern, initializer, is_rest); |
+ Traits::AddFormalParameter(parameters, pattern, initializer, |
+ scanner()->location().end_pos, is_rest); |
} |