Update Acorn to v8.17.0 (#19344)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2026-06-12 03:36:15 +08:00
1 parent 7dc924c58b
commit 7e374c3cd0
4 files changed
+6 -30

No files matched your search

@@ -584,28 +584,6 @@ async function f() {
================================================================================
`;
exports[`valid-for-using-binding-of-of.js format[acorn] 1`] = `
"Assigning to rvalue (2:8)
1 | async function f() {
> 2 | for (await using of of of);
| ^
3 | for await (await using of of of);
4 | }
5 |
Cause: Assigning to rvalue (2:7)"
`;
exports[`valid-for-using-binding-of-of.js format[espree] 1`] = `
"Assigning to rvalue (2:8)
1 | async function f() {
> 2 | for (await using of of of);
| ^
3 | for await (await using of of of);
4 | }
5 |
Cause: Assigning to rvalue"
`;
exports[`valid-for-using-binding-of-of.js format[flow] 1`] = `
"Invalid left-hand side in for-of (2:8)
1 | async function f() {
@@ -52,14 +52,12 @@ runFormatTest(import.meta, ["babel", "flow", "typescript"], {
// "invalid-script-top-level-using-binding.js",
"valid-module-block-top-level-using-binding.js",
"valid-module-block-top-level-await-using-binding.js",
"valid-for-using-binding-of-of.js",
],
espree: [
"invalid-duplicate-using-bindings.js",
// "invalid-script-top-level-using-binding.js",
"valid-module-block-top-level-using-binding.js",
"valid-module-block-top-level-await-using-binding.js",
"valid-for-using-binding-of-of.js",
],
meriyah: [
"for-await-using-of-comments.js",