Skip to content

[BUG]: Acorn logs a message to the console when using the REPL #2429

Closed
@kgryte

Description

@kgryte

Description

Encountered an error when using the REPL and performing the following sequence:

In [1]: {<|>

followed by ENTER.

In [1]: {Since Acorn 8.0.0, options.ecmaVersion is required.
Defaulting to 2020, but this will stop working in the future.

When looking through the REPL implementation, I didn't find an instance where we were parsing and not passing options, but it's possible that I missed something.

Related Issues

n/a

Questions

No.

Demo

No response

Reproduction

See OP above.

Expected Results

No response

Actual Results

No response

Version

No response

Environments

Node.js

Browser Version

No response

Node.js / npm Version

No response

Platform

No response

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.REPLIssue or pull request specific to the project REPL.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions