Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 39d0d9278b132fd4dfc5a9ebd104661f1f846205..86c5592399f8a30d57dd491e1ba85f41f517dbbf 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -837,6 +837,8 @@ class ParserTraits { |
ZoneList<v8::internal::Expression*>* args, |
int pos); |
+ inline Expression* RewriteDestructuringAssignment(Expression* expr, bool* ok); |
+ |
private: |
Parser* parser_; |
}; |
@@ -1064,6 +1066,8 @@ class Parser : public ParserBase<ParserTraits> { |
ForStatement* loop, Statement* init, Expression* cond, Statement* next, |
Statement* body, bool* ok); |
+ Expression* DesugarDestructuringAssignment(Expression* expr, bool* ok); |
+ |
FunctionLiteral* ParseFunctionLiteral( |
const AstRawString* name, Scanner::Location function_name_location, |
bool name_is_strict_reserved, FunctionKind kind, |
@@ -1292,6 +1296,12 @@ void ParserTraits::DeclareFormalParameter(Scope* scope, Expression* pattern, |
parser_->scanner()->location()); |
} |
} |
+ |
+ |
+inline Expression* ParserTraits::RewriteDestructuringAssignment( |
+ Expression* expr, bool* ok) { |
+ return parser_->DesugarDestructuringAssignment(expr, ok); |
+} |
} } // namespace v8::internal |
#endif // V8_PARSER_H_ |