Wrong ecmaVersion using v.2.0.1

Open
#17 2 comments 1 reaction 1 assignee View on GitHub

@goto-bus-stop is already working on this.

Since Aug 25, 2022.

Assessment

This issue has not been assessed yet.

Description

Using
"dependencies": { "acorn-node": "^2.0.1" }

In the index.js file in node_modules there is an old ecmaVersion, it should be 2021 like in the repo:
https://github.com/browserify/acorn-node/blob/4ac53fa3ac475c969883c0dc0a8a846d2b9ab6b7/src/index.js#L13

  return xtend({
    ecmaVersion: 2020,
    allowHashBang: true,
    allowReturnOutsideFunction: true
  }, opts)

Related Issue: @https://github.com/nodejs/undici/issues/1479

Dominant language
JavaScript
Stars
13
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from browserify/acorn-node

All issues in browserify/acorn-node

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.