On Wed, Sep 18, 2013 at 9:44 PM, Luke <[email protected]> wrote:
> How do I get an Isolate from a persistent context? I need to enter an
> Isolate::Scope and Context::Scope, but this method is marked to be
> deprecated:
>
>  V8_INLINE Scope(Isolate* isolate, Persistent<Context>& context)
>
>
> What is the right way to do this going forward?
>
>
> Luke

Rematerialize the Local<Context> with Local<Context>::New(isolate,
persistent_context).  After that, you create the Context::Scope as
usual.

You can get the current isolate with Isolate::GetCurrent().  If you
have multiple isolates and you don't know at that point what isolate
the context belongs to, you'll have to restructure your application a
little.

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

Reply via email to