[v8-users] Re: Calling method on Persistent

Sun, 02 Sep 2018 14:08:44 -0700

There's no ->/dereference operator in Persistent<> in 7.0, so maybe it was 
removed for safety. (forcing it to be referenced from a local, and 
therefore inside a handle scope)

I went from 5.5 to 7.0 without having to change any code here, but anywhere 
I set the internal field is via a Local<Object>.

Can you get the local from the persistent and then set it?

On Friday, 31 August 2018 06:07:53 UTC+1, Mike Moening wrote:
>
> I've upgraded from a slightly older version of V8.
>
> I can no longer do this with a Persistent<Object>
>
> *obj->SetInternalField(0, External::New(pIsolate, xxxx));*
>
> *error C2039: 'SetInternalField': is not a member of 
> 'v8::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>'*
> *1>        with*
> *1>        [*
> *1>            T=v8::Object*
> *1>        ]*
>
> Seems the -> operator is no longer available on persistent?
>
> How can I accomplish this with newest V8?
>
> Thanks!
> Mike
>

-- 
-- 
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/d/optout.

Reply via email to