napi_delete_reference
NAPI_EXTERN napi_status napi_delete_reference(napi_env env, napi_ref ref);
-
[in] env
:调用 API 的环境。¥
[in] env
: The environment that the API is invoked under. -
[in] ref
:napi_ref
被删除。¥
[in] ref
:napi_ref
to be deleted.
如果 API 成功,则返回 napi_ok
。
¥Returns napi_ok
if the API succeeded.
该 API 删除传入的引用。
¥This API deletes the reference passed in.
即使存在挂起的 JavaScript 异常,也可以调用此 API。
¥This API can be called even if there is a pending JavaScript exception.