Skip to content

Commit 10cc60f

Browse files
sinkhahatargos
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 ad8a688 commit 10cc60f

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
@@ -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)