Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Add a bit of test coverage for callers of destructuring assignment
Browse files Browse the repository at this point in the history
In particular, this covers one caller of CheckDestructuringElement
that didn't have tests before.

R=caitp@igalia.com

Review-Url: https://codereview.chromium.org/2267153002
Cr-Commit-Position: refs/heads/master@{#38841}
  • Loading branch information
ajklein authored and Commit bot committed Aug 23, 2016
1 parent cf6db3f commit ad07b49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cctest/test-parsing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6746,6 +6746,11 @@ TEST(DestructuringAssignmentNegativeTests) {
"[x, y, ...[z] = [1]]",
"[...[z] = [1]]",

"[...++x]",
"[...x--]",
"[...!x]",
"[...x + y]",

// v8:4657
"({ x: x4, x: (x+=1e4) })",
"(({ x: x4, x: (x+=1e4) }))",
Expand Down

0 comments on commit ad07b49

Please sign in to comment.