From a6ece286045ba6189618110e7d8b5e0f5d9d3f44 Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Tue, 24 Sep 2024 16:05:48 +0200 Subject: [PATCH] deps: update acorn-walk to 8.3.4 PR-URL: https://github.com/nodejs/node/pull/54950 Reviewed-By: Luigi Pinca Reviewed-By: Michael Dawson Reviewed-By: Marco Ippolito Reviewed-By: Rafael Gonzaga --- deps/acorn/acorn-walk/CHANGELOG.md | 6 ++++++ deps/acorn/acorn-walk/dist/walk.js | 12 +++--------- deps/acorn/acorn-walk/dist/walk.mjs | 12 +++--------- deps/acorn/acorn-walk/package.json | 2 +- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/deps/acorn/acorn-walk/CHANGELOG.md b/deps/acorn/acorn-walk/CHANGELOG.md index 909a546e0410ba..7aeae8fd5c8622 100644 --- a/deps/acorn/acorn-walk/CHANGELOG.md +++ b/deps/acorn/acorn-walk/CHANGELOG.md @@ -1,3 +1,9 @@ +## 8.3.4 (2024-09-09) + +### Bug fixes + +Walk SwitchCase nodes as separate nodes. + ## 8.3.3 (2024-01-11) ### Bug fixes diff --git a/deps/acorn/acorn-walk/dist/walk.js b/deps/acorn/acorn-walk/dist/walk.js index 580df6413725f8..40b7aa1b078a18 100644 --- a/deps/acorn/acorn-walk/dist/walk.js +++ b/deps/acorn/acorn-walk/dist/walk.js @@ -215,16 +215,10 @@ }; base.SwitchStatement = function (node, st, c) { c(node.discriminant, st, "Expression"); - for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) { - var cs = list$1[i$1]; + for (var i = 0, list = node.cases; i < list.length; i += 1) { + var cs = list[i]; - if (cs.test) { c(cs.test, st, "Expression"); } - for (var i = 0, list = cs.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } + c(cs, st); } }; base.SwitchCase = function (node, st, c) { diff --git a/deps/acorn/acorn-walk/dist/walk.mjs b/deps/acorn/acorn-walk/dist/walk.mjs index 19eebc0e70f598..c475ababc7ac30 100644 --- a/deps/acorn/acorn-walk/dist/walk.mjs +++ b/deps/acorn/acorn-walk/dist/walk.mjs @@ -209,16 +209,10 @@ base.WithStatement = function (node, st, c) { }; base.SwitchStatement = function (node, st, c) { c(node.discriminant, st, "Expression"); - for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) { - var cs = list$1[i$1]; + for (var i = 0, list = node.cases; i < list.length; i += 1) { + var cs = list[i]; - if (cs.test) { c(cs.test, st, "Expression"); } - for (var i = 0, list = cs.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } + c(cs, st); } }; base.SwitchCase = function (node, st, c) { diff --git a/deps/acorn/acorn-walk/package.json b/deps/acorn/acorn-walk/package.json index 9d96d36e06fc22..133059576956d8 100644 --- a/deps/acorn/acorn-walk/package.json +++ b/deps/acorn/acorn-walk/package.json @@ -16,7 +16,7 @@ ], "./package.json": "./package.json" }, - "version": "8.3.3", + "version": "8.3.4", "engines": { "node": ">=0.4.0" },