When I use -sMODULARIZE and -pthread, code gets generated into the *.js file so that the pthread workers do

isPthread && Module();

(where the Module() invocation returns a promise that resolves to a module instance). But that module instance is effectively "lost", or is there some way for me to obtain it? (Other than using sed on the generated *.js to make that line instead read

isPthread && createOnlineModule().then(module => ...);

and capture the instance.)

--
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/emscripten-discuss/c7ce1e8e-2f14-4739-a1f2-5598133ad270%40gmail.com.

Reply via email to