Skip to content

Commit

Permalink
lib: use existing isWindows variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkhaha authored and aduh95 committed May 23, 2023
1 parent 92a938b commit 85c275b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 85c275b

Please sign in to comment.