Index: src/parsing/scanner.h |
diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h |
index 6df47a4feaf127cfdf47002177c2554ac0e90f03..cb6ad47d409157cee2a84f69edf9315f8be273f5 100644 |
--- a/src/parsing/scanner.h |
+++ b/src/parsing/scanner.h |
@@ -342,7 +342,11 @@ class Scanner { |
// Scans the input as a template literal |
Token::Value ScanTemplateStart(); |
- Token::Value ScanTemplateContinuation(); |
+ Token::Value ScanTemplateContinuation() { |
+ DCHECK_EQ(next_.token, Token::RBRACE); |
+ next_.location.beg_pos = source_pos() - 1; // We already consumed } |
+ return ScanTemplateSpan(); |
+ } |
Handle<String> SourceUrl(Isolate* isolate) const; |
Handle<String> SourceMappingUrl(Isolate* isolate) const; |