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 647c332 commit f006a14Copy full SHA for f006a14
2 files changed
src/js_native_api.h
@@ -352,7 +352,7 @@ napi_create_reference(napi_env env,
352
353
// Deletes a reference. The referenced value is released, and may
354
// be GC'd unless there are other references to it.
355
-NAPI_EXTERN napi_status NAPI_CDECL napi_delete_reference(napi_env env,
+NAPI_EXTERN napi_status NAPI_CDECL napi_delete_reference(node_api_basic_env env,
356
napi_ref ref);
357
358
// Increments the reference count, optionally returning the resulting count.
src/js_native_api_v8.cc
@@ -2773,7 +2773,8 @@ napi_status NAPI_CDECL napi_create_reference(napi_env env,
2773
// there are other references to it.
2774
// For a napi_reference returned from `napi_wrap`, this must be called in the
2775
// finalizer.
2776
-napi_status NAPI_CDECL napi_delete_reference(napi_env env, napi_ref ref) {
+napi_status NAPI_CDECL napi_delete_reference(node_api_basic_env env,
2777
+ napi_ref ref) {
2778
// Omit NAPI_PREAMBLE and GET_RETURN_STATUS because V8 calls here cannot throw
2779
// JS exceptions.
2780
CHECK_ENV(env);
0 commit comments