Skip to content

Commit 646e1b6

Browse files
digitalinfinitymhdawson
authored andcommitted
Fix Node n-api support check
PR-URL: #141 Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent ec33379 commit 646e1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var versionArray = process.version
1515
// available in *this* package. So, if we find that the Node.js version is below
1616
// that, we indicate that the API is missing from Node.js.
1717
var isNodeApiBuiltin =
18-
(versionArray[0] >= 8 && versionArray[1] >= 4 && versionArray[2] >= 0);
18+
(versionArray[0] > 8 || (versionArray[0] == 8 && versionArray[1] > 5));
1919

2020
// So far it looks like even version 9 will need the flag. We need to adjust
2121
// this for the version where the flag is dropped whenever that version lands.

0 commit comments

Comments
 (0)