// Copyright (C) 2023 Ron Buckton. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-for-in-and-for-of-statements description: > ForDeclaration containing 'using' does not support an initializer info: | IterationStatement: for (ForDeclaration of AssignmentExpression) Statement negative: phase: parse type: SyntaxError features: [explicit-resource-management] ---*/ $DONOTEVALUATE(); const obj = { [Symbol.dispose]() { } }; for (using x = obj of []) {}