n-api,test: make method static
One non-static method remains PR-URL: https://github.com/nodejs/node/pull/20292 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
f1d9527534
commit
5a10d14b6e
@ -11,7 +11,7 @@ static napi_value GetFinalizeCount(napi_env env, napi_callback_info info) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FinalizeExternal(napi_env env, void* data, void* hint) {
|
static void FinalizeExternal(napi_env env, void* data, void* hint) {
|
||||||
int *actual_value = data;
|
int *actual_value = data;
|
||||||
NAPI_ASSERT_RETURN_VOID(env, actual_value == &test_value,
|
NAPI_ASSERT_RETURN_VOID(env, actual_value == &test_value,
|
||||||
"The correct pointer was passed to the finalizer");
|
"The correct pointer was passed to the finalizer");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user