Skip to content

Commit 27af5b4

Browse files
Merge pull request #173 from davidchambers/ecma-version
change `ecmaVersion` from `2020` to `2023`
2 parents 4fdb585 + 90c1b62 commit 27af5b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/doctest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const wrapJs = sourceType => test => {
5656
const source = formatInput (0) (test.input.lines);
5757
const ast = acorn.parse (
5858
source.startsWith ('{') && source.endsWith ('}') ? `(${source})` : source,
59-
{ecmaVersion: 2020, sourceType}
59+
{ecmaVersion: 2023, sourceType}
6060
);
6161
const {type} = ast.body[0];
6262
if (type !== 'ExpressionStatement') return source;
@@ -260,7 +260,7 @@ const rewriteJs = sourceType => ({
260260
const getComments = input => {
261261
const comments = [];
262262
acorn.parse (input, {
263-
ecmaVersion: 2020,
263+
ecmaVersion: 2023,
264264
sourceType,
265265
locations: true,
266266
onComment: comments,

0 commit comments

Comments
 (0)