From 7e374c3cd024b2bd1b5d88e005aec3718b60f1b6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 03:36:15 +0800 Subject: [PATCH] Update Acorn to v8.17.0 (#19344) Co-authored-by: fisker --- package.json | 2 +- .../__snapshots__/format.test.js.snap | 22 ------------------- .../format.test.js | 2 -- yarn.lock | 10 ++++----- 4 files changed, 6 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index e43e48065..a18c47542 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@prettier/parse-srcset": "3.1.0", "@typescript-eslint/typescript-estree": "8.61.0", "@typescript-eslint/visitor-keys": "8.61.0", - "acorn": "8.16.0", + "acorn": "8.17.0", "acorn-jsx": "5.3.2", "angular-estree-parser": "15.5.0", "angular-html-parser": "10.7.0", diff --git a/tests/format/js/explicit-resource-management/__snapshots__/format.test.js.snap b/tests/format/js/explicit-resource-management/__snapshots__/format.test.js.snap index b6509d831..f5cd9f419 100644 --- a/tests/format/js/explicit-resource-management/__snapshots__/format.test.js.snap +++ b/tests/format/js/explicit-resource-management/__snapshots__/format.test.js.snap @@ -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() { diff --git a/tests/format/js/explicit-resource-management/format.test.js b/tests/format/js/explicit-resource-management/format.test.js index 449a85898..f82a6d56c 100644 --- a/tests/format/js/explicit-resource-management/format.test.js +++ b/tests/format/js/explicit-resource-management/format.test.js @@ -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", diff --git a/yarn.lock b/yarn.lock index c887a67bf..a1f7c7276 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2995,12 +2995,12 @@ __metadata: languageName: node linkType: hard -"acorn@npm:8.16.0, acorn@npm:^8.15.0, acorn@npm:^8.16.0": - version: 8.16.0 - resolution: "acorn@npm:8.16.0" +"acorn@npm:8.17.0, acorn@npm:^8.15.0, acorn@npm:^8.16.0": + version: 8.17.0 + resolution: "acorn@npm:8.17.0" bin: acorn: bin/acorn - checksum: 10/690c673bb4d61b38ef82795fab58526471ad7f7e67c0e40c4ff1e10ecd80ce5312554ef633c9995bfc4e6d170cef165711f9ca9e49040b62c0c66fbf2dd3df2b + checksum: 10/2eea1588075124df569b15995423204055c5575ad992283025dddfcb557a0340de7d75cc1bc25dca8df148c60c4222e576e0e519965f0ec7f86f6085c8428824 languageName: node linkType: hard @@ -8081,7 +8081,7 @@ __metadata: "@typescript-eslint/parser": "npm:8.61.0" "@typescript-eslint/typescript-estree": "npm:8.61.0" "@typescript-eslint/visitor-keys": "npm:8.61.0" - acorn: "npm:8.16.0" + acorn: "npm:8.17.0" acorn-jsx: "npm:5.3.2" angular-estree-parser: "npm:15.5.0" angular-html-parser: "npm:10.7.0"