Skip to content

Console.log bug? #23137

Closed
Closed
@dtroydev

Description

@dtroydev
  • Version: v10.6.0
  • Platform: Mac OS 10.13.6
  • Subsystem: console

Suppose we used console.log as follows:

console.log('I\'m trying to escape', false);
console.log(false, 'I\'m trying to escape');

This will then output the following:

I'm trying to escape false
false 'I\'m trying to escape'

As can be seen the backslash is treated differently between lines.

Also in the actual shell, the colouring is not present in the first line, but is present in the second line.
(boolean is yellow and string is green)

Is this by design or a bug?

Metadata

Metadata

Assignees

Labels

confirmed-bugIssues with confirmed bugs.consoleIssues and PRs related to the console subsystem.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions