blob: 3d2b17af87a03e569b6a54d73b7f21c2a8e51fc9 [file] [log] [blame]
// 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 ForDeclaration position.
info: |
IterationStatement:
for (ForDeclaration of AssignmentExpression) Statement
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
for (const [x] = 1 of []) {}