Commit 03806a0b authored by Gabriel Schulhof's avatar Gabriel Schulhof Committed by Gabriel Schulhof
Browse files

node-api: force env shutdown deferring behavior

The finalizer normally never gets called while a reference is strong.
However, during environment shutdown all finalizers must get called. In
order to unify the deferring behavior with that of a regular
finalization, we must force the reference to be weak when we call its
finalizer during environment shutdown.

Fixes: https://github.com/nodejs/node/issues/37236


Co-authored-by: default avatarChengzhong Wu <legendecas@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/37303


Reviewed-By: default avatarChengzhong Wu <legendecas@gmail.com>
Reviewed-By: default avatarMichael Dawson <midawson@redhat.com>
parent bb2d85f2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment