Skip to content

Commit 8d585bf

Browse files
sinkhahadanielleadams
authored andcommitted
lib: use existing isWindows variable
PR-URL: #48134 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
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

Lines changed: 1 addition & 1 deletion
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)