Hi,

I'm having trouble understanding when a Persistent handle is
considered "Near Death", and when exactly a weak reference callback is
invoked. Consider the following code:

https://gist.github.com/908831

It appears that the WeakReference Callback is never invoked.

I guess my questions are

1) Why is it never considered near death? given that there is only one
reference to it which is weak.

2) why isn't the PrintlnWeakReferenceCallback ever invoked?

3) WeakReferenceCallbacks take a Persistent<Value> as a parameter.
What if, as in this case, the object is not a Value?

cheers,
Charles

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to