Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update Acorn to v8.5.0 #40015

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions deps/acorn/acorn-walk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 8.2.0 (2021-09-06)

### New features

Add support for walking ES2022 class static blocks.

## 8.1.1 (2021-06-29)

### Bug fixes

Include `base` in the type declarations.

## 8.1.0 (2021-04-24)

### New features
Expand Down
2 changes: 2 additions & 0 deletions deps/acorn/acorn-walk/dist/walk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,6 @@ declare module "acorn-walk" {
): Found<TState> | undefined;

export const findNodeAfter: typeof findNodeAround;

export const base: RecursiveVisitors<any>;
}
2 changes: 1 addition & 1 deletion deps/acorn/acorn-walk/dist/walk.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@

var base = {};

base.Program = base.BlockStatement = function (node, st, c) {
base.Program = base.BlockStatement = base.StaticBlock = function (node, st, c) {
for (var i = 0, list = node.body; i < list.length; i += 1)
{
var stmt = list[i];
Expand Down
2 changes: 1 addition & 1 deletion deps/acorn/acorn-walk/dist/walk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function ignore(_node, _st, _c) {}

var base = {};

base.Program = base.BlockStatement = function (node, st, c) {
base.Program = base.BlockStatement = base.StaticBlock = function (node, st, c) {
for (var i = 0, list = node.body; i < list.length; i += 1)
{
var stmt = list[i];
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.1.0",
"version": "8.2.0",
"engines": {"node": ">=0.4.0"},
"maintainers": [
{
Expand Down
20 changes: 20 additions & 0 deletions deps/acorn/acorn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## 8.5.0 (2021-09-06)

### Bug fixes

Improve context-dependent tokenization in a number of corner cases.

Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).

Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.

Fix wrong end locations stored on SequenceExpression nodes.

Implement restriction that `for`/`of` loop LHS can't start with `let`.

### New features

Add support for ES2022 class static blocks.

Allow multiple input files to be passed to the CLI tool.

## 8.4.1 (2021-06-24)

### Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion deps/acorn/acorn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ required):

- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
11 (2020), 12 (2021, partial support), 13 (2022, partial support)
11 (2020), 12 (2021), 13 (2022, partial support)
or `"latest"` (the latest the library supports). This influences
support for strict mode, the set of reserved words, and support
for new syntax features.
Expand Down
3 changes: 3 additions & 0 deletions deps/acorn/acorn/dist/acorn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ declare namespace acorn {
p_expr: TokContext
q_tmpl: TokContext
f_expr: TokContext
f_stat: TokContext
f_expr_gen: TokContext
f_gen: TokContext
}

function isIdentifierStart(code: number, astral?: boolean): boolean
Expand Down
Loading