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