On Fri, Dec 2, 2016 at 9:52 AM, Thomas Barusseau
<
baruss...@gmail.com> wrote:
> So, anyway, I tried your fix. New errors/crashes arise. I believe it's
> because of the
> structure of my code, but here's what I do now :
>
> I put up the Local<Function> copying of the Persistent<Function> earlier,
> and tried
> to get its context the way you told me to.
> First of all, to copy it I had to define a HandleScope scope(isolate), else
> I had a
> "#Fatal error in v8::HandleScope::CreateHandle()
> # Cannot create a handle without a HandleScope"
> error. So after I added the HandleScope right above the `Local<Function>
> lpe` definition,
> now I have a segfault during the part where I get the context, from lpe,
> here is the stack trace :
>
https://gist.github.com/anonymous/1d939e3e339243fc19baacf3066ffd12
>
> Would be really thankful if you could help me further. Thanks in advance.
different thread. That's not safe, use a mechanism like