v8/test/message/fail/object-binding-pattern-await1.out
Caitlin Potter 84a71a585a [parser] classify binding pattern errors when parsing await expression
await expressions are an invalid destructuring target, and should
result in a SyntaxError when used in a position where a destructuring
target is expected.

BUG=v8:7173
R=marja@chromium.org, adamk@chromium.org

Change-Id: I1bdb4bc13cb2e3e904fc4389a6e0abca1e0ed17f
Reviewed-on: https://chromium-review.googlesource.com/811946
Reviewed-by: Sathya Gunasekaran (ooo until 12/12) <gsathya@chromium.org>
Commit-Queue: Caitlin Potter <caitp@igalia.com>
Cr-Commit-Position: refs/heads/master@{#49977}
2017-12-09 16:29:23 +00:00

5 lines
175 B
Plaintext

*%(basename)s:6: SyntaxError: Invalid destructuring assignment target
let { a: await b } = { a: 1 };
^^^^^^^
SyntaxError: Invalid destructuring assignment target