Skip to content

n-api: keep napi_env alive while it has finalizers#31140

Closed
addaleax wants to merge 3 commits intonodejs:masterfrom
addaleax:fix-napi-finalizer-env-ref
Closed

n-api: keep napi_env alive while it has finalizers#31140
addaleax wants to merge 3 commits intonodejs:masterfrom
addaleax:fix-napi-finalizer-env-ref

Conversation

@addaleax
Copy link
Member

@addaleax addaleax commented Dec 30, 2019

Manage the napi_env refcount from Finalizer instances, as the
finalizer may refer to the napi_env until it is deleted.

Fixes: #31134
Fixes: node-ffi-napi/node-ffi-napi#48

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. node-api Issues and PRs related to the Node-API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buffer api error since 13.3.0 Segmentation fault in node 13

7 participants