From a9457573c40ed284ac11716055b55cb3860d12fc Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Sun, 30 Oct 2022 10:12:38 -0600 Subject: [PATCH] Don't enable fast API calls for Node v16.8, #195 --- node-index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-index.js b/node-index.js index c7d0edeee..4ee2a48ba 100644 --- a/node-index.js +++ b/node-index.js @@ -11,7 +11,7 @@ let [ majorVersion, minorVersion ] = versions.node.split('.') if (versions.v8 && +majorVersion == nativeAddon.version.nodeCompiledVersion) { let v8Funcs = {}; - let fastApiCalls = (majorVersion == 17 || majorVersion == 18 || majorVersion == 16 && minorVersion > 6) && !process.env.DISABLE_TURBO_CALLS; + let fastApiCalls = (majorVersion == 17 || majorVersion == 18 || majorVersion == 16 && minorVersion > 8) && !process.env.DISABLE_TURBO_CALLS; if (fastApiCalls) setFlagsFromString('--turbo-fast-api-calls') nativeAddon.enableDirectV8(v8Funcs, fastApiCalls);