| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 3d907184bce0edf52846d40c7535a166f83d6a08..7b3eea68afe2cdf1e0aca0a9f7753fb7db10d045 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -796,6 +796,8 @@ class ParserTraits {
|
| const Scanner::Location& params_loc,
|
| Scanner::Location* duplicate_loc, bool* ok);
|
|
|
| + Expression* RewriteDestructuringAssignment(Expression* expression);
|
| +
|
| void ReindexLiterals(const ParserFormalParameters& parameters);
|
|
|
| // Temporary glue; these functions will move to ParserBase.
|
| @@ -1103,6 +1105,8 @@ class Parser : public ParserBase<ParserTraits> {
|
| ForStatement* loop, Statement* init, Expression* cond, Statement* next,
|
| Statement* body, bool* ok);
|
|
|
| + Expression* DesugarDestructuringAssignment(Expression* expr);
|
| +
|
| FunctionLiteral* ParseFunctionLiteral(
|
| const AstRawString* name, Scanner::Location function_name_location,
|
| FunctionNameValidity function_name_validity, FunctionKind kind,
|
| @@ -1367,6 +1371,12 @@ void ParserTraits::AddParameterInitializationBlock(
|
| }
|
| }
|
| }
|
| +
|
| +
|
| +inline Expression* ParserTraits::RewriteDestructuringAssignment(
|
| + Expression* expr) {
|
| + return parser_->DesugarDestructuringAssignment(expr);
|
| +}
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_PARSER_H_
|
|
|