Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index e4947f208a2fa631dae8d5202ebd722ad8486d86..10c1d5282cce53823c18ff1913b1296c48cd9725 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -1677,6 +1677,10 @@ ParserBase<Traits>::ParsePropertyDefinition( |
classifier->RecordCoverInitializedNameError( |
Scanner::Location(next_beg_pos, scanner()->location().end_pos), |
MessageTemplate::kInvalidCoverInitializedName); |
+ |
+ if (allow_harmony_function_name()) { |
+ Traits::SetFunctionNameFromIdentifierRef(rhs, lhs); |
+ } |
} else { |
value = lhs; |
} |
@@ -2882,6 +2886,10 @@ void ParserBase<Traits>::ParseFormalParameter( |
if (!*ok) return; |
parameters->is_simple = false; |
classifier->RecordNonSimpleParameter(); |
+ |
+ if (allow_harmony_function_name()) { |
+ Traits::SetFunctionNameFromIdentifierRef(initializer, pattern); |
+ } |
} |
Traits::AddFormalParameter(parameters, pattern, initializer, |