Skip to content

Commit f5913ba

Browse files
authored
feat: make napi_delete_reference use node_api_basic_env (#170)
1 parent 5c08104 commit f5913ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/emnapi/include/node/js_native_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ napi_create_reference(napi_env env,
358358

359359
// Deletes a reference. The referenced value is released, and may
360360
// be GC'd unless there are other references to it.
361-
NAPI_EXTERN napi_status NAPI_CDECL napi_delete_reference(napi_env env,
361+
NAPI_EXTERN napi_status NAPI_CDECL napi_delete_reference(node_api_basic_env env,
362362
napi_ref ref);
363363

364364
// Increments the reference count, optionally returning the resulting count.

0 commit comments

Comments
 (0)