Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Switching the global context

$
0
0
Hi ZoneRunner,

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!

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>