V8 How to evaluate v8::Module for different v8::Context?

57 Views Asked by At

I'm trying to create multiple v8::Contexts with their own globals initialized by evaluating exactly the same JavaScript module code.

I was hoping to compile the code once, and then run it for every v8::Context. However, it looks like v8::Module can be run once for a single ``v8::Context`.

Is there any way to compile code once, and then instantiate and evaluate module for multiple v8::Contexts?

0

There are 0 best solutions below