Dear All,
I am a C developer quite new to v8 (I have limited c++ knowledge).
Sorry if I ask very basic questions.
I have a C application that need to execute some js code in different times
preserving the same context.
My code looks like:
*Header file*
*=*
#ifdef __cplusplus
extern "C" {
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
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
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
Hello All,
I am involved with a project that relies on v8 for most of its features. We
are trying to upgrade the v8 engine to 8.5 and the project compiles without
any error.
We also have a debugger that uses inspector protocol -- however after the
upgradation the debugger crashes when
*sessio
I have attached the stack trace from attaching the debugger to the running
program below:
https://drive.google.com/drive/folders/124iiIB682-vgbN5S0BPG2mR2DmUe32lc?usp=sharing
On Tuesday, November 3, 2020 at 10:49:21 AM UTC+5:30 Vinayaka Kamath wrote:
> Hello All,
>
> I am involved with a project
Vinayaka, the answer is here in your console output.
# Fatal error in HandleScope::HandleScope
# Entering the V8 API without proper locking in place
#
You want to use v8::Locker consistently, pretty much wherever you have a
HandleScope you need to instantiate a v8::Locker immediately before.
Reg