fix(ext/napi): pass user context to napi_threadsafe_fn finalizers (#26229)

Fixes https://github.com/denoland/deno/issues/26228
This commit is contained in:
Divy Srivastava 2024-10-14 12:41:34 +05:30 committed by GitHub
parent 7c3da2ec1c
commit d22195e741
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -692,7 +692,7 @@ impl Drop for TsFn {
if let Some(finalizer) = self.thread_finalize_cb {
unsafe {
(finalizer)(self.env as _, self.thread_finalize_data, ptr::null_mut());
(finalizer)(self.env as _, self.thread_finalize_data, self.context);
}
}
}