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

fix(napi): allow cleanup hook to remove itself #17402

Merged
merged 2 commits into from
Jan 13, 2023

Conversation

bartlomieju
Copy link
Member

This commit fixes "cleanup hooks" in NAPI integration in two ways:

  • don't hold to RefCell's borrow while iterating over hooks
  • allow a hook to remove itself when being called

Closes #17396

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju merged commit 2251141 into denoland:main Jan 13, 2023
@bartlomieju bartlomieju deleted the fix_napi_cleanup_hooks branch January 13, 2023 21:17
bartlomieju added a commit that referenced this pull request Jan 16, 2023
This commit fixes "cleanup hooks" in NAPI integration in two ways:
- don't hold to RefCell's borrow while iterating over hooks
- allow a hook to remove itself when being called
MierenManz added a commit to MierenManz/oned that referenced this pull request Jan 20, 2023
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.

deno panics when using prisma cli commands
2 participants