Skip to content

repl: '...' should not be detected as REPL keyword #14426

Closed
@silverwind

Description

@silverwind
$ node
> ...[]
Invalid REPL keyword

Should instead throw this error:

$ node -p '...[]'
[eval]:1
...[]
^^^
SyntaxError: Unexpected token ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.good first issueIssues that are suitable for first-time contributors.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions