Skip to content

Commit 79e06f0

Browse files
committed
lib: use isWindows
1 parent c55aa01 commit 79e06f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ const fatalExceptionStackEnhancers = {
787787
// However, fatal error are handled differently and we cannot easily
788788
// highlight them. On Windows, detecting whether a console supports
789789
// ANSI escape sequences is not reliable.
790-
if (process.platform === 'win32') {
790+
if (isWindows) {
791791
const info = internalBinding('os').getOSInformation();
792792
const ver = ArrayPrototypeMap(StringPrototypeSplit(info[2], '.'),
793793
Number);

0 commit comments

Comments
 (0)