We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21b5577 commit fc3079aCopy full SHA for fc3079a
test/language/statements/using/syntax/using-for-statement.js
@@ -0,0 +1,14 @@
1
+// Copyright (C) 2011 the V8 project authors. All rights reserved.
2
+// This code is governed by the BSD license found in the LICENSE file.
3
+/*---
4
+esid: sec-for-statement
5
+description: >
6
+ using: 'for (using x = ' and 'for (using of =' are interpreted as for loop
7
+features: [explicit-resource-management]
8
+---*/
9
+
10
+for (using x = null;;) break;
11
12
+// 'using of' lookahead restriction only applies to 'for-of'/'for-await-of'. In 'for' statement it is
13
+// handled similar to `for (let of = null;;)`:
14
+for (using of = null;;) break;
test/language/statements/using/syntax/using-invalid-for-using-of-of.js renamed to test/language/statements/using/syntax/using-for-using-of-of.js
0 commit comments