mirror of https://github.com/tc39/test262.git
21 lines
496 B
JavaScript
21 lines
496 B
JavaScript
// Copyright (C) 2019 Aleksey Shvayka. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
esid: sec-iteration-statements
|
|
description: >
|
|
Initializer is not allowed in head's ForBinding position.
|
|
info: |
|
|
IterationStatement:
|
|
for await (var ForBinding of AssignmentExpression) Statement
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
features: [async-iteration]
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
|
|
async function fn() {
|
|
for await (var {x} = 1 of []) {}
|
|
}
|