From 11b87f295f374ac8304b02ff9875faa2f32ec7ef Mon Sep 17 00:00:00 2001 From: Marly Fleitas Date: Wed, 28 Nov 2018 16:38:36 -0500 Subject: [PATCH] src: fix selection logic for 6.x PR-URL: https://github.com/nodejs/node-addon-api/pull/402 Reviewed-By: Gabriel Schulhof Reviewed-By: NickNaso --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 77dc6d4..74e90e8 100644 --- a/index.js +++ b/index.js @@ -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