| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 22b3a5d9f8d119824d70369f1a7320545e7d2fed..6fdaff4394a97811bce17e64f6619f2efb0464bb 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -749,9 +749,10 @@ class ParserTraits {
|
| FunctionKind kind = kNormalFunction);
|
|
|
| bool DeclareFormalParameter(Scope* scope, const AstRawString* name,
|
| - bool is_rest) {
|
| + bool is_rest, int pos) {
|
| bool is_duplicate = false;
|
| - Variable* var = scope->DeclareParameter(name, VAR, is_rest, &is_duplicate);
|
| + Variable* var =
|
| + scope->DeclareParameter(name, VAR, is_rest, &is_duplicate, pos);
|
| if (is_sloppy(scope->language_mode())) {
|
| // TODO(sigurds) Mark every parameter as maybe assigned. This is a
|
| // conservative approximation necessary to account for parameters
|
| @@ -1071,6 +1072,10 @@ class Parser : public ParserBase<ParserTraits> {
|
| ForStatement* loop, Statement* init, Expression* cond, Statement* next,
|
| Statement* body, bool* ok);
|
|
|
| + ZoneList<Statement*>* DesugarInitializeParameters(
|
| + Scope* scope, bool hasParameterExpressions,
|
| + ZoneList<Expression*>* initializers);
|
| +
|
| FunctionLiteral* ParseFunctionLiteral(
|
| const AstRawString* name, Scanner::Location function_name_location,
|
| bool name_is_strict_reserved, FunctionKind kind,
|
|
|