Skip to content

Commit 732c77e

Browse files
nodejs-github-botjuanarbol
authored andcommitted
deps: update acorn to 8.8.2
PR-URL: #46363 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 1eaafc7 commit 732c77e

File tree

7 files changed

+62
-45
lines changed

7 files changed

+62
-45
lines changed

deps/acorn/acorn/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 8.8.2 (2023-01-23)
2+
3+
### Bug fixes
4+
5+
Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`.
6+
7+
Fix an exception when passing no option object to `parse` or `new Parser`.
8+
9+
Fix incorrect parse error on `if (0) let\n[astral identifier char]`.
10+
111
## 8.8.1 (2022-10-24)
212

313
### Bug fixes

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare namespace acorn {
1111
[Symbol.iterator](): Iterator<Token>
1212
}
1313

14-
type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest'
14+
type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 'latest'
1515

1616
interface Options {
1717
ecmaVersion: ecmaVersion

deps/acorn/acorn/dist/acorn.js

+23-20
Large diffs are not rendered by default.

deps/acorn/acorn/dist/acorn.mjs

+23-18
Large diffs are not rendered by default.

deps/acorn/acorn/dist/bin.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ var path = require('path');
44
var fs = require('fs');
55
var acorn = require('./acorn.js');
66

7-
function _interopNamespace(e) {
8-
if (e && e.__esModule) return e;
7+
function _interopNamespaceDefault(e) {
98
var n = Object.create(null);
109
if (e) {
1110
Object.keys(e).forEach(function (k) {
@@ -18,11 +17,11 @@ function _interopNamespace(e) {
1817
}
1918
});
2019
}
21-
n["default"] = e;
20+
n.default = e;
2221
return Object.freeze(n);
2322
}
2423

25-
var acorn__namespace = /*#__PURE__*/_interopNamespace(acorn);
24+
var acorn__namespace = /*#__PURE__*/_interopNamespaceDefault(acorn);
2625

2726
var inputFilePaths = [], forceFileName = false, fileMode = false, silent = false, compact = false, tokenize = false;
2827
var options = {};

deps/acorn/acorn/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"./package.json": "./package.json"
1818
},
19-
"version": "8.8.1",
19+
"version": "8.8.2",
2020
"engines": {
2121
"node": ">=0.4.0"
2222
},

src/acorn_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// Refer to tools/update-acorn.sh
33
#ifndef SRC_ACORN_VERSION_H_
44
#define SRC_ACORN_VERSION_H_
5-
#define ACORN_VERSION "8.8.1"
5+
#define ACORN_VERSION "8.8.2"
66
#endif // SRC_ACORN_VERSION_H_

0 commit comments

Comments
 (0)