Skip to content

Commit 8d585bf

Browse files
sinkhahadanielleadams
authored andcommitted
lib: use existing isWindows variable
PR-URL: #48134 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
1 parent 0969206 commit 8d585bf

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
@@ -781,7 +781,7 @@ const fatalExceptionStackEnhancers = {
781781
// However, fatal error are handled differently and we cannot easily
782782
// highlight them. On Windows, detecting whether a console supports
783783
// ANSI escape sequences is not reliable.
784-
if (process.platform === 'win32') {
784+
if (isWindows) {
785785
const info = internalBinding('os').getOSInformation();
786786
const ver = ArrayPrototypeMap(StringPrototypeSplit(info[2], '.'),
787787
Number);

0 commit comments

Comments
 (0)