Function deno_napi::weak_local
source · pub unsafe fn weak_local(
env_ptr: *mut Env,
value: Local<'_, Value>,
data: *mut c_void,
finalize_cb: napi_finalize,
finalize_hint: *mut c_void
) -> Option<Local<'_, Value>>
Expand description
Safety
This function is unsafe because it dereferences raw pointer Env.
- The caller must ensure that the pointer is valid.
- The caller must ensure that the pointer is not freed.