Just downloaded and built JerryScript yesterday and noticed something odd about running multiple contexts. According to my reading in the documentation, it says that you have to manually switch the currently running contexts if compiled with external contexts enabled. Is there a more ergonomic way to use different contexts* or is this engine mainly single-threaded? If not, then is it due to memory constraints?
- I mean like using a different thread like a separate object:
- duk_context* ctx = duk_create_heap_default(); // Duktape allows use of contexts like this, and it's also usable for microcontrollers.
- lua_State* L = luaL_newstate(); // Ditto, but for Lua and LuaJIT.
Just downloaded and built JerryScript yesterday and noticed something odd about running multiple contexts. According to my reading in the documentation, it says that you have to manually switch the currently running contexts if compiled with external contexts enabled. Is there a more ergonomic way to use different contexts* or is this engine mainly single-threaded? If not, then is it due to memory constraints?