[v8-users] Re: Calling method on Persistent

Tue, 04 Sep 2018 07:37:35 -0700


Do you mean something like this?

 

Persistent<Object> obj;

obj.Reset(pIsolate, blah->NewInstance());

 

Handle<Object> objLocal = obj.Get(pIsolate);

 

objLocal->SetInternalField(0, External::New(pIsolate, xxxx));

objLocal->SetInternalField(1, External::New(pIsolate, yyyy));

 

obj.SetWeak<MyClass>(myPointer, MyClass::DestructorCallback);

 

Will making a Local object still affect the original Persistent object when 
I call SetInternalField()?

-- 
-- 
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.

Reply via email to