Skip to content

Commit ba396aa

Browse files
committed
add missing NAPI_CDECL
1 parent b320716 commit ba396aa

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/js_native_api_v8.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2519,11 +2519,11 @@ napi_status NAPI_CDECL napi_create_reference(napi_env env,
25192519
env, value, node_api_reftype_maybe_weak, initial_refcount, result);
25202520
}
25212521

2522-
napi_status node_api_create_reference(napi_env env,
2523-
napi_value value,
2524-
node_api_reftype reftype,
2525-
uint32_t initial_refcount,
2526-
napi_ref* result) {
2522+
napi_status NAPI_CDECL node_api_create_reference(napi_env env,
2523+
napi_value value,
2524+
node_api_reftype reftype,
2525+
uint32_t initial_refcount,
2526+
napi_ref* result) {
25272527
// Omit NAPI_PREAMBLE and GET_RETURN_STATUS because V8 calls here cannot throw
25282528
// JS exceptions.
25292529
CHECK_ENV(env);
@@ -2552,9 +2552,9 @@ napi_status node_api_create_reference(napi_env env,
25522552
return napi_clear_last_error(env);
25532553
}
25542554

2555-
napi_status node_api_get_reference_type(napi_env env,
2556-
napi_ref ref,
2557-
node_api_reftype* result) {
2555+
napi_status NAPI_CDECL node_api_get_reference_type(napi_env env,
2556+
napi_ref ref,
2557+
node_api_reftype* result) {
25582558
// Omit NAPI_PREAMBLE and GET_RETURN_STATUS because V8 calls here cannot throw
25592559
// JS exceptions.
25602560
CHECK_ENV(env);

0 commit comments

Comments
 (0)