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

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

Issue 615813004: Allow escape sequences in Constructor/Prototype tokens in PreParserTraits::GetSymbol() (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Share code between LiteralMatches() and UnescapedLiteralMatches() Created 6 years, 3 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
« src/scanner.h ('K') | « src/scanner.h ('k') | no next file » | 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 3556c649f11bcc9bfef78dbc70d1210749e22f97..732222d4ff2f51dc5c8f5bc49731be2d486f81e7 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -3855,6 +3855,10 @@ TEST(ClassStaticPrototypeErrors) {
"static get prototype() {}",
"static set prototype(_) {}",
"static *prototype() {}",
+ "static 'prot\u006ftype'() {}",
+ "static get 'prot\u006ftype'() {}",
+ "static set 'prot\u006ftype'(_) {}",
+ "static *'prot\u006ftype'() {}",
arv (Not doing code reviews) 2014/10/01 21:49:56 One more case: "static prot\u006ftype() {}", ...
NULL};
static const ParserFlag always_flags[] = {
@@ -3875,6 +3879,9 @@ TEST(ClassSpecialConstructorErrors) {
"get constructor() {}",
"get constructor(_) {}",
"*constructor() {}",
+ "get 'c\u006fnstructor'() {}",
+ "get 'c\u006fnstructor'(_) {}",
+ "*'c\u006fnstructor'() {}",
NULL};
static const ParserFlag always_flags[] = {
« src/scanner.h ('K') | « src/scanner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698