deno/ext
LongYinan 3c3af1011a
fix(ext/napi): ensure the finalizer callback will be called (#29710)
See
https://github.com/napi-rs/napi-rs/issues/2708#issuecomment-2963957944
for the context.

In current implementation, the Weak `Reference` is created with
`v8::Weak::with_finalizer`, but there is no guarantee as to *when* or
even *if* the finalization callback:
https://github.com/denoland/rusty_v8/blob/v137.2.0/src/handle.rs#L623-L627.
It may cause the memory leak if Node-API caller want to do some cleanup
jobs in the finalization callback.
2025-06-12 15:05:08 +02:00
..
broadcast_channel 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
cache 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
canvas 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
console 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
cron 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
crypto 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
fetch 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
ffi 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
fs 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
http 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
io 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
kv 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
napi fix(ext/napi): ensure the finalizer callback will be called (#29710) 2025-06-12 15:05:08 +02:00
net 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
node 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
os 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
process 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
rt_helper 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
telemetry 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
tls 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
url 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
web 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
webgpu 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
webidl 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
websocket 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00
webstorage 2.3.6 (#29722) 2025-06-12 14:33:24 +02:00