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

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: Add TODO + move ParenthesizedField line above Type-dependent fields/comments 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
« no previous file with comments | « 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..bbf70afb0dfdf29680496356b3e565ba5832ef43 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -7042,6 +7042,21 @@ TEST(DestructuringAssignmentNegativeTests) {
"[...x,]",
"[x, y, ...z = 1]",
"[...z = 1]",
+
+ // v8:4657
+ "({ x: x4, x: (x+=1e4) })",
+ "(({ x: x4, x: (x+=1e4) }))",
+ "({ x: x4, x: (x+=1e4) } = {})",
+ "(({ x: x4, x: (x+=1e4) } = {}))",
+ "(({ x: x4, x: (x+=1e4) }) = {})",
+ "({ x: y } = {})",
+ "(({ x: y } = {}))",
+ "(({ x: y }) = {})",
+ "([a])",
+ "(([a]))",
+ "([a] = [])",
+ "(([a] = []))",
+ "(([a]) = [])",
NULL};
// clang-format on
static const ParserFlag always_flags[] = {
« no previous file with comments | « src/parsing/preparser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698