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

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

Issue 1570793002: [parser] parenthesized Literals are not valid AssignmentPatterns (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/parsing/preparser.h ('K') | « src/parsing/preparser.cc ('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 a6bb8ecad3e400214d66511344032956949245cc..5414ecb8676f7e135bc5de881a2f18d2bab4b9f5 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -7042,6 +7042,13 @@ TEST(DestructuringAssignmentNegativeTests) {
"[...x,]",
"[x, y, ...z = 1]",
"[...z = 1]",
+
+ // v8:4657
adamk 2016/01/08 16:24:23 Please add a few tests with multiple levels of par
caitp (gmail) 2016/01/08 16:36:01 Done
+ "({ x: x4, x: (x+=1e4) })",
+ "({ x: x4, x: (x+=1e4) } = {})",
+ "({ x: y } = {})",
+ "([a])",
+ "([a] = [])",
NULL};
// clang-format on
static const ParserFlag always_flags[] = {
« src/parsing/preparser.h ('K') | « src/parsing/preparser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698