I'm learning v8 and trying to integrate it into our project as an alternative for slow Qt JS Engine. Unfortunately, I can't figure out (probably) one simple thing.
In case that I want to use "import" keyword, I need to use Modules - v8::ScriptCompiler::CompileModule instead of Script v8::Script::Compile.
But is there a way, how can I access compiled and initialized modules from Script?
I don't need it to import it via JS, it would be sufficient for me to import it via c++ code.
Something like when configuring global functions/variables to the current context.
m_isolate->GetCurrentContext()->Global()->Set("moduleName",moduleHandle)
to allow our users to access modules from their script via moduleName.Func()