Hi ZoneRunner,
Yes, this is possible.
Normally, when you invoke the
To create multiple V8 contexts within a single V8 runtime, use ClearScript's
You can download ClearScript's API reference here.
Good luck!
Yes, this is possible.
Normally, when you invoke the
V8ScriptEngine
constructor, ClearScript creates a V8 context within a dedicated V8 runtime (a.k.a. isolate).To create multiple V8 contexts within a single V8 runtime, use ClearScript's
V8Runtime
constructor and then call V8Runtime.CreateScriptEngine
as necessary.You can download ClearScript's API reference here.
Good luck!