Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wrong error report message for expression {}) #46877

Copy link
Copy link
@tuannd89

Description

@tuannd89
Issue body actions

Version

v19.7.0

Platform

No response

Subsystem

No response

What steps will reproduce the bug?

$ node
> {})
({}))
    ^
Uncaught SyntaxError: Unexpected token ')'

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

> {})
{})
    ^
Uncaught SyntaxError: Unexpected token ')'

What do you see instead?

> {})
({}))
    ^
Uncaught SyntaxError: Unexpected token ')'

Additional information

We got similar result with expression {}]

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    replIssues and PRs related to the REPL subsystem.Issues 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.