Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 98f56d1

Browse filesBrowse files
targosBethGriggs
authored andcommitted
deps: update Acorn to v8.5.0
PR-URL: #40015 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent fe920b6 commit 98f56d1
Copy full SHA for 98f56d1

File tree

Expand file treeCollapse file tree

12 files changed

+663
-526
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

12 files changed

+663
-526
lines changed
Open diff view settings
Collapse file

‎deps/acorn/acorn-walk/CHANGELOG.md‎

Copy file name to clipboardExpand all lines: deps/acorn/acorn-walk/CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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
Collapse file

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

Copy file name to clipboardExpand all lines: deps/acorn/acorn-walk/dist/walk.d.ts
+2Lines 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
}
Collapse file

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

Copy file name to clipboardExpand all lines: deps/acorn/acorn-walk/dist/walk.js
+1-1Lines 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];
Collapse file

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

Copy file name to clipboardExpand all lines: deps/acorn/acorn-walk/dist/walk.mjs
+1-1Lines 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];
Collapse file

‎deps/acorn/acorn-walk/package.json‎

Copy file name to clipboardExpand all lines: deps/acorn/acorn-walk/package.json
+1-1Lines 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
{
Collapse file

‎deps/acorn/acorn/CHANGELOG.md‎

Copy file name to clipboardExpand all lines: deps/acorn/acorn/CHANGELOG.md
+20Lines changed: 20 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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
Collapse file

‎deps/acorn/acorn/README.md‎

Copy file name to clipboardExpand all lines: deps/acorn/acorn/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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.
Collapse file

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

Copy file name to clipboardExpand all lines: deps/acorn/acorn/dist/acorn.d.ts
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.