Weak Reference proposal

Boris Zbarsky bzbarsky at mit.edu
Wed Feb 17 16:00:21 UTC 2016

On 2/17/16 8:30 AM, Joris van der Wel wrote:
> XMLHttpRequest, fetch, WebSocket, etc would even require a something
> similar to a phantom reference (like in java) so that we can close the
> connection when the object is no longer strongly or weakly referenced.

None of these allow closing the connection merely because the object is 
not referenced from elsewhere.

Or put another way, the connection must hold a reference to the object.


More information about the es-discuss mailing list