Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 0d16469f3190e582d399752cf5387926922d268a..6384194445c34441bae1df8e15e6d06c9da5a16c 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -766,8 +766,11 @@ Literal* ParserTraits::ExpressionFromLiteral(Token::Value token, int pos, |
Expression* ParserTraits::ExpressionFromIdentifier(const AstRawString* name, |
int start_position, |
- int end_position) { |
- if (parser_->fni_ != NULL) parser_->fni_->PushVariableName(name); |
+ int end_position, |
+ InferName infer) { |
+ if (infer == InferName::Yes && parser_->fni_ != NULL) { |
+ parser_->fni_->PushVariableName(name); |
+ } |
return parser_->NewUnresolved(name, start_position, end_position); |
} |