Hi, another question: suppose my JS object "A" (implemented in C++) needs a (hidden) reference to another JS object "B". I store the reference using
A->SetInternalField(0, v8::Persistent<v8::Object>::New(B)); and this works nicely. However, at some time (for instance when A gets GC'ed), I need to release the reference to B. How can I do this? Calling A->GetInternalField(0) returns v8::Local<v8::Value>; if I wrap this with a new Persistent (in order to do Dispose), I will have *two* persistent handles to B - as far as I know, this still means that B won't get GC'ed... ? Thanks a lot, Ondrej -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
