| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 9080160c7590f21cce5a7ac3e619e86b60d383f0..f39dccefa0349a7592eb1c1025735582cd692947 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -847,6 +847,8 @@ class ParserTraits {
|
| ZoneList<v8::internal::Expression*>* args,
|
| int pos);
|
|
|
| + inline Expression* RewriteDestructuringAssignment(Expression* expr);
|
| +
|
| private:
|
| Parser* parser_;
|
| };
|
| @@ -1074,6 +1076,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,
|
| bool name_is_strict_reserved, FunctionKind kind,
|
| @@ -1278,6 +1282,12 @@ Expression* ParserTraits::SpreadCallNew(
|
| Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) {
|
| return parser_->SpreadCallNew(function, args, pos);
|
| }
|
| +
|
| +
|
| +inline Expression* ParserTraits::RewriteDestructuringAssignment(
|
| + Expression* expr) {
|
| + return parser_->DesugarDestructuringAssignment(expr);
|
| +}
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_PARSER_H_
|
|
|