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

Unified Diff: test/cctest/test-parsing.cc

Issue 2724003006: [parser] Correctly handle invalid escapes in adjacent template tokens. (Closed)
Patch Set: MoveErrorTo takes a TokenDesc* Created 3 years, 10 months 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 | « src/parsing/scanner.cc ('k') | test/mjsunit/harmony/template-escapes.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index f2e90ae259902619df96b46725597579bbd395c0..c03e2791115c0940c7d1ba46f0568768868066a0 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -7161,6 +7161,12 @@ TEST(TemplateEscapesPositiveTests) {
"tag`\\u{110000}${0}right`",
"tag`left${0}\\u{110000}`",
"tag`left${0}\\u{110000}${1}right`",
+ "tag` ${tag`\\u`}`",
+ "tag` ``\\u`",
+ "tag`\\u`` `",
+ "tag`\\u``\\u`",
+ "` ${tag`\\u`}`",
+ "` ``\\u`",
NULL};
// clang-format on
@@ -7239,6 +7245,8 @@ TEST(TemplateEscapesNegativeTests) {
"`left${0}\\u{110000}`",
"`left${0}\\u{110000}${1}right`",
"`\\1``\\2`",
+ "tag` ${`\\u`}`",
+ "`\\u```",
NULL};
// clang-format on
« no previous file with comments | « src/parsing/scanner.cc ('k') | test/mjsunit/harmony/template-escapes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698