We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nodejs
Learn more about funding links in repositories.
Report abuse
isWindows
1 parent 4c5c63f commit a2552abCopy full SHA for a2552ab
lib/internal/errors.js
@@ -781,7 +781,7 @@ const fatalExceptionStackEnhancers = {
781
// However, fatal error are handled differently and we cannot easily
782
// highlight them. On Windows, detecting whether a console supports
783
// ANSI escape sequences is not reliable.
784
- if (process.platform === 'win32') {
+ if (isWindows) {
785
const info = internalBinding('os').getOSInformation();
786
const ver = ArrayPrototypeMap(StringPrototypeSplit(info[2], '.'),
787
Number);
0 commit comments