Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index c6e906d9ad828f0bffe039bd6249caebd470a01f..8120f4668509bc6dad641c7588251278783c19fe 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -651,8 +651,8 @@ class ParserTraits { |
void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property, |
const AstRawString* name); |
- // Rewrite expressions |
- V8_INLINE Expression* RewriteExpression( |
+ // Rewrite expressions that are not used as patterns |
+ V8_INLINE Expression* RewriteNonPattern( |
Expression* expr, const ExpressionClassifier* classifier, bool* ok); |
V8_INLINE ObjectLiteralProperty* RewriteObjectLiteralProperty( |
ObjectLiteralProperty* property, const ExpressionClassifier* classifier, |
@@ -1010,7 +1010,7 @@ class Parser : public ParserBase<ParserTraits> { |
V8_INLINE void RewriteDestructuringAssignments(); |
- V8_INLINE Expression* RewriteExpression( |
+ V8_INLINE Expression* RewriteNonPattern( |
Expression* expr, const ExpressionClassifier* classifier, bool* ok); |
V8_INLINE ObjectLiteralProperty* RewriteObjectLiteralProperty( |
ObjectLiteralProperty* property, const ExpressionClassifier* classifier, |