Skip to content

Commit 98f56d1

Browse files
targosBethGriggs
authored andcommitted
deps: update Acorn to v8.5.0
PR-URL: #40015 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fe920b6 commit 98f56d1

File tree

12 files changed

+663
-526
lines changed

12 files changed

+663
-526
lines changed

deps/acorn/acorn-walk/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 8.2.0 (2021-09-06)
2+
3+
### New features
4+
5+
Add support for walking ES2022 class static blocks.
6+
7+
## 8.1.1 (2021-06-29)
8+
9+
### Bug fixes
10+
11+
Include `base` in the type declarations.
12+
113
## 8.1.0 (2021-04-24)
214

315
### New features

deps/acorn/acorn-walk/dist/walk.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,6 @@ declare module "acorn-walk" {
109109
): Found<TState> | undefined;
110110

111111
export const findNodeAfter: typeof findNodeAround;
112+
113+
export const base: RecursiveVisitors<any>;
112114
}

deps/acorn/acorn-walk/dist/walk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190

191191
var base = {};
192192

193-
base.Program = base.BlockStatement = function (node, st, c) {
193+
base.Program = base.BlockStatement = base.StaticBlock = function (node, st, c) {
194194
for (var i = 0, list = node.body; i < list.length; i += 1)
195195
{
196196
var stmt = list[i];

deps/acorn/acorn-walk/dist/walk.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function ignore(_node, _st, _c) {}
184184

185185
var base = {};
186186

187-
base.Program = base.BlockStatement = function (node, st, c) {
187+
base.Program = base.BlockStatement = base.StaticBlock = function (node, st, c) {
188188
for (var i = 0, list = node.body; i < list.length; i += 1)
189189
{
190190
var stmt = list[i];

deps/acorn/acorn-walk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"./package.json": "./package.json"
1818
},
19-
"version": "8.1.0",
19+
"version": "8.2.0",
2020
"engines": {"node": ">=0.4.0"},
2121
"maintainers": [
2222
{

deps/acorn/acorn/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 8.5.0 (2021-09-06)
2+
3+
### Bug fixes
4+
5+
Improve context-dependent tokenization in a number of corner cases.
6+
7+
Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).
8+
9+
Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.
10+
11+
Fix wrong end locations stored on SequenceExpression nodes.
12+
13+
Implement restriction that `for`/`of` loop LHS can't start with `let`.
14+
15+
### New features
16+
17+
Add support for ES2022 class static blocks.
18+
19+
Allow multiple input files to be passed to the CLI tool.
20+
121
## 8.4.1 (2021-06-24)
222

323
### Bug fixes

deps/acorn/acorn/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ required):
5454

5555
- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
5656
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
57-
11 (2020), 12 (2021, partial support), 13 (2022, partial support)
57+
11 (2020), 12 (2021), 13 (2022, partial support)
5858
or `"latest"` (the latest the library supports). This influences
5959
support for strict mode, the set of reserved words, and support
6060
for new syntax features.

deps/acorn/acorn/dist/acorn.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ declare namespace acorn {
173173
p_expr: TokContext
174174
q_tmpl: TokContext
175175
f_expr: TokContext
176+
f_stat: TokContext
177+
f_expr_gen: TokContext
178+
f_gen: TokContext
176179
}
177180

178181
function isIdentifierStart(code: number, astral?: boolean): boolean

0 commit comments

Comments
 (0)