Skip to content

Wrong hint message when parsing expression such as {a:1}['a'] === 1 in node #31820

@Killea

Description

@Killea

image

Welcome to Node.js v13.8.0.
Type ".help" for more information.

{a:1}['a'] === 1
false
{a:1}['a'] === 1
true (have not press enter, if press enter it turns to false)

  • Version: 13.8
  • Platform: Linux
  • Subsystem: NA

I tested on Chrome, it always shows false. I'm sure this is a bug.

What steps will reproduce the bug?

Type {a:1}['a'] === 1 in a node console.

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

Every time.

What is the expected behavior?

The gray font of 'true' in this image should be 'false'!

Metadata

Metadata

Assignees

Labels

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