Re: [v8-users] Reusing v8 context

2020-11-02 Thread Marco Bambini
Sorry I misread the function name. Now it works thanks a lot! On Monday, November 2, 2020 at 11:17:32 AM UTC+1 szu...@google.com wrote: > My guess is that in your V8ContextCreate function you also need a > temporary HandleScope before you can make a global out of the context: > > v8::HandleScope

Re: [v8-users] Reusing v8 context

2020-11-02 Thread Marco Bambini
Not sure to understand, a temporary HandleScope already exists in my code: // Create a stack-allocated handle scope v8::HandleScope handle_scope(instance->engine->isolate); // Enter the context for compiling and running the script v8::Local context(instance->context->Get(instance->engine->iso

Re: [v8-users] Reusing v8 context

2020-11-02 Thread 'Simon Zünd' via v8-users
My guess is that in your V8ContextCreate function you also need a temporary HandleScope before you can make a global out of the context: v8::HandleScope handle_scope(engine->isolate); On Mon, Nov 2, 2020 at 10:36 AM Marco Bambini wrote: > Dear All, > I am a C developer quite new to v8 (I have l