Skip to content

Commit

Permalink
Parse for line numbers with latest supported ECMA version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
novemberborn committed Jul 10, 2022
1 parent 53e5709 commit d0af729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/worker/line-numbers.js
Expand Up @@ -12,7 +12,7 @@ function parse(file) {
const walk = require('acorn-walk');

const ast = acorn.parse(fs.readFileSync(file, 'utf8'), {
ecmaVersion: 11,
ecmaVersion: 'latest',
locations: true,
sourceType: 'module',
});
Expand Down

0 comments on commit d0af729

Please sign in to comment.