Commit aca07f4
errors: skip fatal error highlighting on windows
Some consoles do not convert ANSI escape sequences to colors,
rather display them directly to the stdout. On those consoles,
libuv emulates colors by intercepting stdout stream and calling
corresponding Windows API functions for setting console colors.
However, fatal error are handled differently and we cannot easily
highlight them.
PR-URL: nodejs/node#33132
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 762adc9 commit aca07f4
1 file changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
677 | 692 | | |
678 | 693 | | |
679 | 694 | | |
680 | 695 | | |
681 | 696 | | |
682 | 697 | | |
683 | | - | |
| 698 | + | |
| 699 | + | |
684 | 700 | | |
685 | | - | |
| 701 | + | |
686 | 702 | | |
687 | 703 | | |
688 | 704 | | |
| |||
0 commit comments