@@ -3,31 +3,19 @@ commit: 4cc3d888
33parser_babel Summary:
44AST Parsed : 2422/2440 (99.26%)
55Positive Passed: 2395/2440 (98.16%)
6- Negative Passed: 1679 /1752 (95.83 %)
6+ Negative Passed: 1685 /1752 (96.18 %)
77Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2022/private-in/invalid-private-followed-by-in-2/input.js
88
9- Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-async/input.js
10-
11- Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-sync/input.js
12-
139Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-module-bare-case-await-using-binding/input.js
1410
1511Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-script-bare-case-await-using-binding/input.js
1612
17- Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-script-top-level-labeled-using-binding/input.js
18-
1913Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-script-top-level-using-binding/input.js
2014
21- Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-in-single-statement-context/input.js
22-
23- Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-labeled-using-binding/input.js
24-
2515Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-module-bare-case-using-binding/input.js
2616
2717Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-script-bare-case-using-binding/input.js
2818
29- Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-script-top-level-labeled-using-binding/input.js
30-
3119Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-script-top-level-using-binding/input.js
3220
3321Expect Syntax Error: tasks/coverage/babel/packages/babel-parser/test/fixtures/estree/class-private-property/typescript-invalid-abstract/input.ts
@@ -9103,6 +9091,121 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc
91039091 4 │ }
91049092 ╰────
91059093
9094+ × Lexical declaration cannot appear in a single-statement context
9095+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-async/input.js:2:13]
9096+ 1 │ async function f() {
9097+ 2 │ while (1) await using a = foo;
9098+ · ────────────────────
9099+ 3 │ for (;;) await using b = foo;
9100+ ╰────
9101+ help: Wrap this declaration in a block statement
9102+
9103+ × Lexical declaration cannot appear in a single-statement context
9104+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-async/input.js:3:12]
9105+ 2 │ while (1) await using a = foo;
9106+ 3 │ for (;;) await using b = foo;
9107+ · ────────────────────
9108+ 4 │ do await using c = foo; while (1);
9109+ ╰────
9110+ help: Wrap this declaration in a block statement
9111+
9112+ × Lexical declaration cannot appear in a single-statement context
9113+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-async/input.js:4:6]
9114+ 3 │ for (;;) await using b = foo;
9115+ 4 │ do await using c = foo; while (1);
9116+ · ────────────────────
9117+ 5 │ if (1) await using d = foo;
9118+ ╰────
9119+ help: Wrap this declaration in a block statement
9120+
9121+ × Lexical declaration cannot appear in a single-statement context
9122+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-async/input.js:5:10]
9123+ 4 │ do await using c = foo; while (1);
9124+ 5 │ if (1) await using d = foo;
9125+ · ────────────────────
9126+ 6 │ with (1) await using e = foo;
9127+ ╰────
9128+ help: Wrap this declaration in a block statement
9129+
9130+ × Lexical declaration cannot appear in a single-statement context
9131+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-async/input.js:6:12]
9132+ 5 │ if (1) await using d = foo;
9133+ 6 │ with (1) await using e = foo;
9134+ · ────────────────────
9135+ 7 │ label: await using f = foo;
9136+ ╰────
9137+ help: Wrap this declaration in a block statement
9138+
9139+ × Lexical declaration cannot appear in a single-statement context
9140+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-async/input.js:7:10]
9141+ 6 │ with (1) await using e = foo;
9142+ 7 │ label: await using f = foo;
9143+ · ────────────────────
9144+ 8 │ }
9145+ ╰────
9146+ help: Wrap this declaration in a block statement
9147+
9148+ × Lexical declaration cannot appear in a single-statement context
9149+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-sync/input.js:2:13]
9150+ 1 │ {
9151+ 2 │ while (1) await using a = foo;
9152+ · ────────────────────
9153+ 3 │ for (;0;) await using b = foo;
9154+ ╰────
9155+ help: Wrap this declaration in a block statement
9156+
9157+ × Lexical declaration cannot appear in a single-statement context
9158+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-sync/input.js:3:13]
9159+ 2 │ while (1) await using a = foo;
9160+ 3 │ for (;0;) await using b = foo;
9161+ · ────────────────────
9162+ 4 │ do await using c = foo; while (1);
9163+ ╰────
9164+ help: Wrap this declaration in a block statement
9165+
9166+ × Lexical declaration cannot appear in a single-statement context
9167+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-sync/input.js:4:6]
9168+ 3 │ for (;0;) await using b = foo;
9169+ 4 │ do await using c = foo; while (1);
9170+ · ────────────────────
9171+ 5 │ if (1) await using d = foo;
9172+ ╰────
9173+ help: Wrap this declaration in a block statement
9174+
9175+ × Lexical declaration cannot appear in a single-statement context
9176+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-sync/input.js:5:10]
9177+ 4 │ do await using c = foo; while (1);
9178+ 5 │ if (1) await using d = foo;
9179+ · ────────────────────
9180+ 6 │ with (1) await using e = foo;
9181+ ╰────
9182+ help: Wrap this declaration in a block statement
9183+
9184+ × Lexical declaration cannot appear in a single-statement context
9185+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-sync/input.js:6:12]
9186+ 5 │ if (1) await using d = foo;
9187+ 6 │ with (1) await using e = foo;
9188+ · ────────────────────
9189+ 7 │ label: await using f = foo;
9190+ ╰────
9191+ help: Wrap this declaration in a block statement
9192+
9193+ × Lexical declaration cannot appear in a single-statement context
9194+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-in-single-statement-context-sync/input.js:7:10]
9195+ 6 │ with (1) await using e = foo;
9196+ 7 │ label: await using f = foo;
9197+ · ────────────────────
9198+ 8 │ }
9199+ ╰────
9200+ help: Wrap this declaration in a block statement
9201+
9202+ × Lexical declaration cannot appear in a single-statement context
9203+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-script-top-level-labeled-using-binding/input.js:1:8]
9204+ 1 │ label: await using x = bar();
9205+ · ──────────────────────
9206+ ╰────
9207+ help: Wrap this declaration in a block statement
9208+
91069209 × Cannot assign to this expression
91079210 ╭─[babel/packages/babel-parser/test/fixtures/es2026/async-explicit-resource-management/invalid-using-array-pattern/input.js:2:3]
91089211 1 │ async function f() {
@@ -9338,6 +9441,76 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc
93389441 · ─
93399442 ╰────
93409443
9444+ × Lexical declaration cannot appear in a single-statement context
9445+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-in-single-statement-context/input.js:2:13]
9446+ 1 │ {
9447+ 2 │ while (1) using a = foo;
9448+ · ──────────────
9449+ 3 │ for (;;) using b = foo;
9450+ ╰────
9451+ help: Wrap this declaration in a block statement
9452+
9453+ × Lexical declaration cannot appear in a single-statement context
9454+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-in-single-statement-context/input.js:3:12]
9455+ 2 │ while (1) using a = foo;
9456+ 3 │ for (;;) using b = foo;
9457+ · ──────────────
9458+ 4 │ do using c = foo; while (1);
9459+ ╰────
9460+ help: Wrap this declaration in a block statement
9461+
9462+ × Lexical declaration cannot appear in a single-statement context
9463+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-in-single-statement-context/input.js:4:6]
9464+ 3 │ for (;;) using b = foo;
9465+ 4 │ do using c = foo; while (1);
9466+ · ──────────────
9467+ 5 │ if (1) using d = foo;
9468+ ╰────
9469+ help: Wrap this declaration in a block statement
9470+
9471+ × Lexical declaration cannot appear in a single-statement context
9472+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-in-single-statement-context/input.js:5:10]
9473+ 4 │ do using c = foo; while (1);
9474+ 5 │ if (1) using d = foo;
9475+ · ──────────────
9476+ 6 │ with (1) using e = foo;
9477+ ╰────
9478+ help: Wrap this declaration in a block statement
9479+
9480+ × Lexical declaration cannot appear in a single-statement context
9481+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-in-single-statement-context/input.js:6:12]
9482+ 5 │ if (1) using d = foo;
9483+ 6 │ with (1) using e = foo;
9484+ · ──────────────
9485+ 7 │ label: using f = foo;
9486+ ╰────
9487+ help: Wrap this declaration in a block statement
9488+
9489+ × Lexical declaration cannot appear in a single-statement context
9490+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-in-single-statement-context/input.js:7:10]
9491+ 6 │ with (1) using e = foo;
9492+ 7 │ label: using f = foo;
9493+ · ──────────────
9494+ 8 │ }
9495+ ╰────
9496+ help: Wrap this declaration in a block statement
9497+
9498+ × Lexical declaration cannot appear in a single-statement context
9499+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-labeled-using-binding/input.js:2:10]
9500+ 1 │ {
9501+ 2 │ label: using x = bar();
9502+ · ────────────────
9503+ 3 │ }
9504+ ╰────
9505+ help: Wrap this declaration in a block statement
9506+
9507+ × Lexical declaration cannot appear in a single-statement context
9508+ ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-script-top-level-labeled-using-binding/input.js:1:8]
9509+ 1 │ label: using x = bar();
9510+ · ────────────────
9511+ ╰────
9512+ help: Wrap this declaration in a block statement
9513+
93419514 × Cannot use `await` as an identifier in an async context
93429515 ╭─[babel/packages/babel-parser/test/fixtures/es2026/explicit-resource-management/invalid-using-binding-await-module/input.js:2:9]
93439516 1 │ {
0 commit comments