[chromium-dev] Re: Destruction of C++ objects attached to V8 objects

2009-05-18 Thread Mike Belshe
On Sat, May 16, 2009 at 12:10 PM, Marshall Greenblatt magreenbl...@gmail.com wrote: On Sat, May 16, 2009 at 1:27 PM, Mike Belshe mbel...@google.com wrote: You can create a weak reference to the object, and when the object is GC'd in v8, the weak reference handler will get called. Check out

[chromium-dev] Re: Destruction of C++ objects attached to V8 objects

2009-05-16 Thread Marshall Greenblatt
On Sat, May 16, 2009 at 1:27 PM, Mike Belshe mbel...@google.com wrote: You can create a weak reference to the object, and when the object is GC'd in v8, the weak reference handler will get called. Check out the v8.h documentation for weak references and it will probably make sense. Mike Hi