We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isWindows
1 parent ad8a688 commit 10cc60fCopy full SHA for 10cc60f
lib/internal/errors.js
@@ -787,7 +787,7 @@ const fatalExceptionStackEnhancers = {
787
// However, fatal error are handled differently and we cannot easily
788
// highlight them. On Windows, detecting whether a console supports
789
// ANSI escape sequences is not reliable.
790
- if (process.platform === 'win32') {
+ if (isWindows) {
791
const info = internalBinding('os').getOSInformation();
792
const ver = ArrayPrototypeMap(StringPrototypeSplit(info[2], '.'),
793
Number);
0 commit comments