Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index b378f47f6576f2739bd9bcad36da634dcff9c752..847f994efe750fce20afa057c86878c46538f9e2 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -2838,12 +2838,12 @@ ParserBase<Traits>::ParseTemplateLiteral(ExpressionT tag, int start, bool* ok) { |
return Traits::EmptyExpression(); |
} |
- int pos = peek_position(); |
+ int expr_pos = peek_position(); |
ExpressionT expression = this->ParseExpression(true, CHECK_OK); |
Traits::AddTemplateExpression(&ts, expression); |
if (peek() != Token::RBRACE) { |
- ReportMessageAt(Scanner::Location(pos, peek_position()), |
+ ReportMessageAt(Scanner::Location(expr_pos, peek_position()), |
"unterminated_template_expr"); |
*ok = false; |
return Traits::EmptyExpression(); |