Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: src/preparser.h

Issue 778813003: ES6 template literals: Fix issue with template after rbrace (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add tests without newlines Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/scanner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index cef5b9473485d715439db147c147dc89531b8eac..b378f47f6576f2739bd9bcad36da634dcff9c752 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -2851,7 +2851,7 @@ ParserBase<Traits>::ParseTemplateLiteral(ExpressionT tag, int start, bool* ok) {
// If we didn't die parsing that expression, our next token should be a
// TEMPLATE_SPAN or TEMPLATE_TAIL.
- next = scanner()->ScanTemplateSpan();
+ next = scanner()->ScanTemplateContinuation();
Next();
if (!next) {
« no previous file with comments | « no previous file | src/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698