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: nodejs/node-addon-api#402
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
  • Loading branch information
wroy7860 committed Nov 28, 2018
1 parent 20a4362 commit 8a48813
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 8a48813

Please sign in to comment.