Skip to content

Commit 65a6c90

Browse files
nodejs-github-botruyadorno
authored andcommitted
deps: update acorn to 8.9.0
PR-URL: #48484 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent dd1805e commit 65a6c90

File tree

9 files changed

+1109
-282
lines changed

9 files changed

+1109
-282
lines changed

deps/acorn/acorn/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 8.9.0 (2023-06-16)
2+
3+
### Bug fixes
4+
5+
Forbid dynamic import after `new`, even when part of a member expression.
6+
7+
### New features
8+
9+
Add Unicode properties for ES2023.
10+
11+
Add support for the `v` flag to regular expressions.
12+
113
## 8.8.2 (2023-01-23)
214

315
### Bug fixes

deps/acorn/acorn/README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ required):
9696
(when `sourceType` is not `"module"`).
9797

9898
- **allowAwaitOutsideFunction**: If `false`, `await` expressions can
99-
only appear inside `async` functions. Defaults to `true` for
100-
`ecmaVersion` 2022 and later, `false` for lower versions. Setting this option to
101-
`true` allows to have top-level `await` expressions. They are
102-
still not allowed in non-`async` functions, though.
99+
only appear inside `async` functions. Defaults to `true` in modules
100+
for `ecmaVersion` 2022 and later, `false` for lower versions.
101+
Setting this option to `true` allows to have top-level `await`
102+
expressions. They are still not allowed in non-`async` functions,
103+
though.
103104

104105
- **allowSuperOutsideMethod**: By default, `super` outside a method
105106
raises an error. Set this to `true` to accept such code.

deps/acorn/acorn/dist/acorn.d.mts

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
export {
2+
Node,
3+
Parser,
4+
Position,
5+
SourceLocation,
6+
TokContext,
7+
Token,
8+
TokenType,
9+
defaultOptions,
10+
getLineInfo,
11+
isIdentifierChar,
12+
isIdentifierStart,
13+
isNewLine,
14+
lineBreak,
15+
lineBreakG,
16+
parse,
17+
parseExpressionAt,
18+
tokContexts,
19+
tokTypes,
20+
tokenizer,
21+
version,
22+
AbstractToken,
23+
Comment,
24+
Options,
25+
ecmaVersion,
26+
} from "./acorn.js";

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

+40
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,44 @@ declare namespace acorn {
249249
const lineBreakG: RegExp
250250

251251
const version: string
252+
253+
const nonASCIIwhitespace: RegExp
254+
255+
const keywordTypes: {
256+
_break: TokenType
257+
_case: TokenType
258+
_catch: TokenType
259+
_continue: TokenType
260+
_debugger: TokenType
261+
_default: TokenType
262+
_do: TokenType
263+
_else: TokenType
264+
_finally: TokenType
265+
_for: TokenType
266+
_function: TokenType
267+
_if: TokenType
268+
_return: TokenType
269+
_switch: TokenType
270+
_throw: TokenType
271+
_try: TokenType
272+
_var: TokenType
273+
_const: TokenType
274+
_while: TokenType
275+
_with: TokenType
276+
_new: TokenType
277+
_this: TokenType
278+
_super: TokenType
279+
_class: TokenType
280+
_extends: TokenType
281+
_export: TokenType
282+
_import: TokenType
283+
_null: TokenType
284+
_true: TokenType
285+
_false: TokenType
286+
_in: TokenType
287+
_instanceof: TokenType
288+
_typeof: TokenType
289+
_void: TokenType
290+
_delete: TokenType
291+
}
252292
}

0 commit comments

Comments
 (0)