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 <[email protected]>
Reviewed-By: NickNaso <[email protected]>
  • Loading branch information
Marlyfleitas committed Nov 28, 2018
1 parent 7d72077 commit 11b87f2
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 11b87f2

Please sign in to comment.