Description[parser] reject parenthesized patterns as DestructuringAssignmentTargets
http://tc39.github.io/ecma262/#sec-destructuring-assignment-static-semantics-early-errors
requires that DestructuringAssignmentTargets which do not match Pattern productions,
must return true for IsValidSimpleAssignmentTarget.
This change rejects parenthesized patterns with a SyntaxError.
BUG=v8:4662, v8:811
LOG=N
R=adamk@chromium.org, rossberg@chromium.org, nikolaos@chromium.org
Committed: https://crrev.com/6b28f294c1217fbf12e4d60e5969b439efc6f839
Cr-Commit-Position: refs/heads/master@{#33254}
Patch Set 1 #
Total comments: 3
Patch Set 2 : remove the extra check #
Messages
Total messages: 11 (2 generated)
|