We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f29fa commit ba66145Copy full SHA for ba66145
src/node_api.cc
@@ -1058,8 +1058,7 @@ napi_create_external_buffer(napi_env env,
1058
1059
#ifdef V8_ENABLE_SANDBOX
1060
return napi_set_last_error(env, napi_no_external_buffers_allowed);
1061
-#endif // V8_ENABLE_SANDBOX
1062
-
+#else
1063
v8::Isolate* isolate = env->isolate;
1064
1065
// The finalizer object will delete itself after invoking the callback.
@@ -1081,6 +1080,7 @@ napi_create_external_buffer(napi_env env,
1081
1080
// as it will be deleted when the buffer to which it is associated
1082
// is finalized.
1083
// coverity[leaked_storage]
+#endif // V8_ENABLE_SANDBOX
1084
}
1085
1086
napi_status NAPI_CDECL napi_create_buffer_copy(napi_env env,
0 commit comments