mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
19 lines
529 B
JavaScript
19 lines
529 B
JavaScript
// 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 'await using' may not contain a binding for `let`
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
info: |
|
|
It is a Syntax Error if the BoundNames of ForDeclaration contains "let".
|
|
flags: [noStrict]
|
|
features: [explicit-resource-management]
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
async function f() {
|
|
for (await using let of []) {}
|
|
}
|