Skip to content

Commit

Permalink
deps: update Acorn to v8.5.0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
targos authored and BethGriggs committed Sep 21, 2021
1 parent fe920b6 commit 98f56d1
Show file tree
Hide file tree
Showing 12 changed files with 663 additions and 526 deletions.
12 changes: 12 additions & 0 deletions deps/acorn/acorn-walk/CHANGELOG.md
@@ -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
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
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
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
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
@@ -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
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
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

0 comments on commit 98f56d1

Please sign in to comment.