Skip to content

Commit

Permalink
fix: hardcode base 10 for nodeMajorVersion parseInt() call
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 authored Nov 2, 2021
1 parent 22e9b3b commit ff5ddb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,4 +936,4 @@ exports.errorToPOJO = function errorToPOJO(error) {
return ret;
};

exports.nodeMajorVersion = parseInt(process.versions.node.split('.')[0]);
exports.nodeMajorVersion = parseInt(process.versions.node.split('.')[0], 10);

0 comments on commit ff5ddb5

Please sign in to comment.