mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
lib: use existing isWindows variable
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
ad8a68856d
commit
10cc60fc91
1 file changed
+1
-1
@@ -787,7 +787,7 @@ const fatalExceptionStackEnhancers = {
|
||||
// However, fatal error are handled differently and we cannot easily
|
||||
// highlight them. On Windows, detecting whether a console supports
|
||||
// ANSI escape sequences is not reliable.
|
||||
if (process.platform === 'win32') {
|
||||
if (isWindows) {
|
||||
const info = internalBinding('os').getOSInformation();
|
||||
const ver = ArrayPrototypeMap(StringPrototypeSplit(info[2], '.'),
|
||||
Number);
|
||||
|
||||
Reference in new issue
Block a user