The example was helpful. Encapsulating the Persistent in the callacks private data object seems to be the way to roll.
> // kParameter will pass a void* parameter back to the callback, > kInternalFields > // will pass the first two internal fields back to the callback, kFinalizer > // will pass a void* parameter back, but is invoked before the object is > // actually collected, so it can be resurrected. In the last case, it is > not > // possible to request a second pass callback. > enum class WeakCallbackType { kParameter, kInternalFields, kFinalizer }; Does that help? Sorry, but no not really. Resurrection? Sounds like a zombie movie (I probably don't need this) *kInternalFields - will pass the first two internal fields back to the callback* How? Why? There has to be something better that explains the callbacks better. -- -- v8-users mailing list v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.