From 07a0fc4e95599e3cfd0db40ea0997cbf568f88e0 Mon Sep 17 00:00:00 2001 From: Michael Dawson 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 77dc6d493..74e90e8e2 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