-
Notifications
You must be signed in to change notification settings - Fork 465
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
Documentation: Mention that Napi::Reference must not be stored in a global static instance #162
Comments
The Reference |
This issue can be closed when PR #243 lands. |
@gabrielschulhof Could be possible close this issue? The |
I'm closing this issue it was solved with PR #243 |
This must be avoided because
Reference
callsnapi_delete_reference()
, which in turn callsReset()
on the persistent stored inside, which ends up crashing because it runs from the library destructor, which in turn runs after theIsolate
has already been disposed of.See the source.
The text was updated successfully, but these errors were encountered: