Skip to content

src: avoid making JSTransferable wrapper object weak

JSTransferable wrapper object is a short-lived wrapper in the scope of the serialization or the deserialization. Make the JSTransferable wrapper object pointer as a strongly-referenced detached BaseObjectPtr so that a JSTransferable wrapper object and its target object will never be garbage-collected during a ser-des process, and the wrapper object will be immediately destroyed when the process is completed.

Fixes: https://github.com/nodejs/node/issues/49852 Fixes: https://github.com/nodejs/node/issues/49844

Merge request reports

Loading