Skip to content

Commit

Permalink
n-api,test: make method static
Browse files Browse the repository at this point in the history
One non-static method remains

PR-URL: #20292
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Gabriel Schulhof authored and MylesBorins committed May 4, 2018
1 parent 769b6c8 commit 2de3343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/addons-napi/test_reference/test_reference.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ static napi_value GetFinalizeCount(napi_env env, napi_callback_info info) {
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;
NAPI_ASSERT_RETURN_VOID(env, actual_value == &test_value,
"The correct pointer was passed to the finalizer");
Expand Down

0 comments on commit 2de3343

Please sign in to comment.