Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 18004a5096d4c20f0ea81470c4a2f69681289fbb..2ffd3580225ec79371ba90c7e1e10535d42f44b3 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -2874,6 +2874,7 @@ ParserBase<Traits>::ParseTemplateLiteral(ExpressionT tag, int start, bool* ok) { |
// case, representing a TemplateMiddle). |
do { |
+ CheckTemplateOctalLiteral(pos, peek_position(), CHECK_OK); |
next = peek(); |
if (!next) { |
ReportMessageAt(Scanner::Location(start, peek_position()), |
@@ -2897,10 +2898,10 @@ ParserBase<Traits>::ParseTemplateLiteral(ExpressionT tag, int start, bool* ok) { |
// TEMPLATE_SPAN or TEMPLATE_TAIL. |
next = scanner()->ScanTemplateContinuation(); |
Next(); |
+ pos = position(); |
if (!next) { |
- ReportMessageAt(Scanner::Location(start, position()), |
- "unterminated_template"); |
+ ReportMessageAt(Scanner::Location(start, pos), "unterminated_template"); |
*ok = false; |
return Traits::EmptyExpression(); |
} |