Proxy objects and collection

Brendan Eich brendan at mozilla.org
Tue Sep 2 11:41:33 PDT 2014


Daurnimator wrote:
> So, I'd like to see some sort of "trap" that is fired when a Proxy is 
> collected.
> To prevent over specifying how Javascript garbage collectors should 
> operate,
> I propose that the trap *may* only be called at some *undefined* point 
> after the object is not strongly referenced.

What would you need in the way of an argument to be passed to the trap, 
at this later point?

/be


More information about the es-discuss mailing list