Skip to content

Commit

Permalink
Don't enable fast API calls for Node v16.8, #195
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Oct 30, 2022
1 parent 4a3af68 commit a945757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a945757

Please sign in to comment.