Skip to content

Conversation

@developit
Copy link
Contributor

MessageChannel has problematic retention semantics and can become a zombie object long after pages are unloaded.
This happens when an onmessage handler for a MessageChannel closes over a reference to the MessageChannel instance or its ports, causing a loop that the garbage collector is unable to determine has been broken.

MessageChannel has problematic retention semantics and can become a zombie object long after pages are unloaded.
This happens when an `onmessage` handler for a MessageChannel closes over a reference to the MessageChannel instance or its ports, causing a loop that the garbage collector is unable to determine has been broken.
Copy link
Owner

@andrewiggins andrewiggins left a comment

Choose a reason for hiding this comment

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

Thanks! 🎉

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.

2 participants