Skip to content

Commit

Permalink
deps: update acorn-walk to 8.3.4
Browse files Browse the repository at this point in the history
PR-URL: #54950
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
  • Loading branch information
nodejs-github-bot authored Sep 24, 2024
1 parent 3c5ceff commit a6ece28
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
6 changes: 6 additions & 0 deletions deps/acorn/acorn-walk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 3 additions & 9 deletions deps/acorn/acorn-walk/dist/walk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
12 changes: 3 additions & 9 deletions deps/acorn/acorn-walk/dist/walk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion deps/acorn/acorn-walk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"./package.json": "./package.json"
},
"version": "8.3.3",
"version": "8.3.4",
"engines": {
"node": ">=0.4.0"
},
Expand Down

0 comments on commit a6ece28

Please sign in to comment.