Skip to content

Commit 8b3aca9

Browse files
committed
Make 10 the default value for ecmaVersion
1 parent 091933c commit 8b3aca9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

acorn/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ an object containing any of these fields:
5454
- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
5555
either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018) or 10 (2019, partial
5656
support). This influences support for strict mode, the set of
57-
reserved words, and support for new syntax features. Default is 9.
57+
reserved words, and support for new syntax features. Default is 10.
5858

5959
**NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
6060
implemented by Acorn. Other proposed new features can be implemented

acorn/src/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const defaultOptions = {
99
// either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018), or 10
1010
// (2019). This influences support for strict mode, the set of
1111
// reserved words, and support for new syntax features. The default
12-
// is 9.
13-
ecmaVersion: 9,
12+
// is 10.
13+
ecmaVersion: 10,
1414
// `sourceType` indicates the mode the code should be parsed in.
1515
// Can be either `"script"` or `"module"`. This influences global
1616
// strict mode and parsing of `import` and `export` declarations.

0 commit comments

Comments
 (0)