I'm creating a Function with a C++ callback as follows:

MethodDescriptor* md = new MethodDescriptor();

md -> someFields = someValue;

Function::New(isolate, callback, External::New(isolate, md))


In this case I associate a MethodDescriptor (md) with the function so that 
when my callback is invoked I can get information about this particular 
instance. How can I get notified (via a callback or destructor) that this 
Function has been GC'd so I can clean-up the memory I allocated for the 
MethodDescriptor?

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to