[parser] Disallow async functions as destructuring targets
This patch teaches the parser that async functions are not valid destructuring targets so that it can cleanly exit with a SyntaxError. Previously, async functions used in the wrong position would lead to a check failure. Bug: chromium:740366 Change-Id: Ie5b0cf50326c3f96174c6b29d0ccedb5da4f75a2 Reviewed-on: https://chromium-review.googlesource.com/567002Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Caitlin Potter <caitp@igalia.com> Commit-Queue: Daniel Ehrenberg <littledan@chromium.org> Cr-Commit-Position: refs/heads/master@{#46587}
Showing
Please
register
or
sign in
to comment