DescriptionDestructuring array without initializer throws an exception
Previously, cases like
var [foo]
led to a parser crash because the parser tried to do something with
the initializer, which was not syntactically present.
This patch fixes the parser issue (implicitly creating an undefined
initializer) and inserts a check for array destructuring that the
right-hand side is coercible to an object, so it can have iterator
methods called on it safely.
BUG=v8:4462
LOG=Y
R=adamk
Committed: https://crrev.com/2e7077e02c2aacda5bc349b415b46dbb9e2f1a34
Cr-Commit-Position: refs/heads/master@{#31128}
Patch Set 1 #
Messages
Total messages: 10 (3 generated)
|