Re: [v8-users] Repeated module evaluation.

2019-06-13 Thread ClearScript Developers
Sorry to revive this thread, but we're encountering the same issue. v8::Script is not a replacement for v8::Module; for one thing, scripts can't import modules :) In any case, V8's API seems deficient here. Modules can be imported specifically for their side effects. There's even unique syntax

Re: [v8-users] Associate custom C++ data with a Local instance

2019-06-13 Thread Ben Noordhuis
On Thu, Jun 13, 2019 at 11:05 AM Darin Dimitrov wrote: > > I am trying to associate some custom C++ data with a Local instance. > > Currently I am able to achieve this only to instances created with this > function: > > Local tmpl = FunctionTemplate::New(isolate, [](const > FunctionCallbackInfo