Skip to content

Commit ad07b49

Browse files
ajkleinCommit bot
authored andcommitted
Add a bit of test coverage for callers of destructuring assignment
In particular, this covers one caller of CheckDestructuringElement that didn't have tests before. [email protected] Review-Url: https://codereview.chromium.org/2267153002 Cr-Commit-Position: refs/heads/master@{#38841}
1 parent cf6db3f commit ad07b49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/cctest/test-parsing.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6746,6 +6746,11 @@ TEST(DestructuringAssignmentNegativeTests) {
67466746
"[x, y, ...[z] = [1]]",
67476747
"[...[z] = [1]]",
67486748

6749+
"[...++x]",
6750+
"[...x--]",
6751+
"[...!x]",
6752+
"[...x + y]",
6753+
67496754
// v8:4657
67506755
"({ x: x4, x: (x+=1e4) })",
67516756
"(({ x: x4, x: (x+=1e4) }))",

0 commit comments

Comments
 (0)