I need to store some C pointers in a v8 object, which may point to a data area. So, I use External::New to convert a C++ object pointer and Object::SetHiddenValue to store it, but I'm not sure how to trace its lifecycle. It means, when the Javascript object was collected, I need be notified and delete the C++ object that was bound to the Javascript object.
Are there any hook or callback could do it? Thanks -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
