mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
deps: update acorn to v8.0.4
This adds support for nullish coalescing, optional chaining and numeric separators. The acorn-numeric-separator plugin can be removed. PR-URL: https://github.com/nodejs/node/pull/35791 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
This commit is contained in:
parent
ed5e5395c7
commit
16b2bc01eb
30 changed files with 6672 additions and 323 deletions
|
@ -223,8 +223,6 @@ function parseCode(code, offset) {
|
|||
require('internal/deps/acorn-plugins/acorn-private-methods/index');
|
||||
const classFields =
|
||||
require('internal/deps/acorn-plugins/acorn-class-fields/index');
|
||||
const numericSeparator =
|
||||
require('internal/deps/acorn-plugins/acorn-numeric-separator/index');
|
||||
const staticClassFeatures =
|
||||
require('internal/deps/acorn-plugins/acorn-static-class-features/index');
|
||||
|
||||
|
@ -233,7 +231,6 @@ function parseCode(code, offset) {
|
|||
const Parser = acorn.Parser.extend(
|
||||
privateMethods,
|
||||
classFields,
|
||||
numericSeparator,
|
||||
staticClassFeatures
|
||||
);
|
||||
parseExpressionAt = Parser.parseExpressionAt.bind(Parser);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue