Skip to content

Conversation

@ianshade
Copy link
Contributor

@ianshade ianshade commented Nov 7, 2022

This PR solves the known limitation of storing references to callback functions indefinitely.
Thanks to WeakRef and FinalizationRegistry we are now able to tell when the parent no longer references a callback provided by the child, making it possible to remove the reference on the child side (and vice versa for callbacks provided by the parent to the child).

Changes the minimum required node version to 14.6.0, and target to es2021.

Still a draft because the following are missing:

  • tests

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.

1 participant