Revert "console: colorize console error and warn" · nodejs/node@3ba2e7b · GitHub
Skip to content

Commit 3ba2e7b

Browse files
avivkellermarco-ippolito
authored andcommitted
Revert "console: colorize console error and warn"
This reverts commit a833c9e. PR-URL: #54677 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 8981309 commit 3ba2e7b

5 files changed

Lines changed: 12 additions & 27 deletions

File tree

lib/internal/console/constructor.js

Lines changed: 5 additions & 20 deletions

test/parallel/test-repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,6 @@ const errorTests = [
785785
'Object [console] {',
786786
' log: [Function: log],',
787787
' warn: [Function: warn],',
788-
' error: [Function: error],',
789788
' dir: [Function: dir],',
790789
' time: [Function: time],',
791790
' timeEnd: [Function: timeEnd],',
@@ -801,6 +800,7 @@ const errorTests = [
801800
/ {2}debug: \[Function: (debug|log)],/,
802801
/ {2}info: \[Function: (info|log)],/,
803802
/ {2}dirxml: \[Function: (dirxml|log)],/,
803+
/ {2}error: \[Function: (error|warn)],/,
804804
/ {2}groupCollapsed: \[Function: (groupCollapsed|group)],/,
805805
/ {2}Console: \[Function: Console],?/,
806806
...process.features.inspector ? [
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
*(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.
3-
(Use `* --trace-warnings ...` to show where the warning was created)*
2+
(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.
3+
(Use `* --trace-warnings ...` to show where the warning was created)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
*(node:*) Warning: The 'NODE_DISABLE_COLORS' and 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
3-
(Use `* --trace-warnings ...` to show where the warning was created)*
2+
(node:*) Warning: The 'NODE_DISABLE_COLORS' and 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
3+
(Use `* --trace-warnings ...` to show where the warning was created)
Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)