> > No extra object to keep around. Once the Local is saved as an eternal I > can get it back with a simple hash lookup (GetEternal()) > > Local<Object> local = Local<Object>::GetEternal(isolate, > MY_OBJECT_TEMPLATE_ID ); > > How does that sound? > > The index is isolate specific and v8 itself uses some internally, so the value of the index cannot be exposed. It's better than keeping a persistent around for cases where access times matter. Getting a Local from an Eternal is very fast.
-- -- 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/groups/opt_out.
