Skip to content

Commit d0af729

Browse files
committed
Parse for line numbers with latest supported ECMA version
This means the supported syntax changes depending on the installed Acorn version, which may change independently of the AVA version since we do not pin the dependency.
1 parent 53e5709 commit d0af729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/worker/line-numbers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function parse(file) {
1212
const walk = require('acorn-walk');
1313

1414
const ast = acorn.parse(fs.readFileSync(file, 'utf8'), {
15-
ecmaVersion: 11,
15+
ecmaVersion: 'latest',
1616
locations: true,
1717
sourceType: 'module',
1818
});

0 commit comments

Comments
 (0)