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
John French committed Nov 28, 2018
1 parent 735e09a commit 4300e65
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
@@ -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

0 comments on commit 4300e65

Please sign in to comment.