Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index faea8b581b4703f01ff7624d73ae977c56ba6e95..760035dc7e6b7851de2264803910e703b8b7725f 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -2126,6 +2126,10 @@ ParserBase<Traits>::ParseAssignmentExpression(bool accept_IN, int flags, |
} |
} |
+ if (op == Token::ASSIGN && allow_harmony_function_name()) { |
+ Traits::SetFunctionNameFromIdentifierRef(right, expression); |
+ } |
+ |
ExpressionT result = factory()->NewAssignment(op, expression, right, pos); |
if (is_destructuring_assignment) { |