Skip to content

Commit

Permalink
add missing NAPI_CDECL
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoroz committed Jun 3, 2022
1 parent b320716 commit ba396aa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/js_native_api_v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2519,11 +2519,11 @@ napi_status NAPI_CDECL napi_create_reference(napi_env env,
env, value, node_api_reftype_maybe_weak, initial_refcount, result);
}

napi_status node_api_create_reference(napi_env env,
napi_value value,
node_api_reftype reftype,
uint32_t initial_refcount,
napi_ref* result) {
napi_status NAPI_CDECL node_api_create_reference(napi_env env,
napi_value value,
node_api_reftype reftype,
uint32_t initial_refcount,
napi_ref* result) {
// Omit NAPI_PREAMBLE and GET_RETURN_STATUS because V8 calls here cannot throw
// JS exceptions.
CHECK_ENV(env);
Expand Down Expand Up @@ -2552,9 +2552,9 @@ napi_status node_api_create_reference(napi_env env,
return napi_clear_last_error(env);
}

napi_status node_api_get_reference_type(napi_env env,
napi_ref ref,
node_api_reftype* result) {
napi_status NAPI_CDECL node_api_get_reference_type(napi_env env,
napi_ref ref,
node_api_reftype* result) {
// Omit NAPI_PREAMBLE and GET_RETURN_STATUS because V8 calls here cannot throw
// JS exceptions.
CHECK_ENV(env);
Expand Down

0 comments on commit ba396aa

Please sign in to comment.