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[] = { |