n-api: handle weak no-finalizer refs correctly · nodejs/node@a6b6556 · GitHub
Skip to content

Commit a6b6556

Browse files
Gabriel Schulhofaddaleax
authored andcommitted
n-api: handle weak no-finalizer refs correctly
When deleting a weak reference that has no finalizer we must not defer deletion until the non-existent finalizer gets called. Fixes: #34731 Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> PR-URL: #34839 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent f87b6c0 commit a6b6556

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/js_native_api_v8.cc

Lines changed: 4 additions & 2 deletions

test/node-api/test_worker_terminate_finalization/test.js

Lines changed: 0 additions & 4 deletions

0 commit comments

Comments
 (0)