-
-
Notifications
You must be signed in to change notification settings - Fork 37.3k
Console.log bug? #23137
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.
Description
Activity
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.
Suppose we used console.log as follows:
This will then output the following:
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?