Skip to content

Commit

Permalink
src: fix selection logic for 6.x
Browse files Browse the repository at this point in the history
PR-URL: #402
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
  • Loading branch information
mhdawson committed Nov 28, 2018
1 parent 269bf12 commit 07a0fc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var versionArray = process.version
var isNodeApiBuiltin = (
versionArray[0] > 8 ||
(versionArray[0] == 8 && versionArray[1] >= 6) ||
(versionArray[0] == 6 && versionArray[1] >= 15) ||
(versionArray[0] == 6 && versionArray[1] >= 14 && versionArray[2] >= 2));

// The flag is not needed when the Node version is not 8, nor if the API is
Expand Down

0 comments on commit 07a0fc4

Please sign in to comment.