Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: clarify ObjectWrap weak ref behavior #1155

Merged
merged 1 commit into from Mar 31, 2022

Conversation

mildsunrise
Copy link
Member

Refs: nodejs/node#42461

We currently defer finalizer callbacks until the loop is idle.

Warn users that the weak reference on ObjectWrap isn't guaranteed to be valid just because the object hasn't been finalized (destructed) yet.

Refs: nodejs/node#42461

We currently defer finalizer callbacks until the loop is idle.
Warn users that the weak reference on ObjectWraps
isn't guaranteed to be valid just because the object hasn't
been finalized (destructed) yet.
Copy link
Member

@NickNaso NickNaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhdawson mhdawson merged commit 8c46a95 into nodejs:main Mar 31, 2022
@mildsunrise mildsunrise deleted the doc-napi-finalize branch March 31, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants