-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Console.log bug? #23137
Copy link
Copy link
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with 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?