-
Hi @sbc100 , emscripten/src/runtime_pthread.js Line 68 in e6ed9d3 My app uses our own |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
Interesting. Even before #21701 we still used the Lines 97 to 114 in 9f19ec9 I wonder if the different is that this used to come before the preJS files and now is comes after? Or some kind ordering thing like that? How are you injecting your |
Beta Was this translation helpful? Give feedback.
-
One more clarifying question: What are you trying to do in the pthreads' instantiateWasm is that is different from simply instantiating the recieved module? Are you using the module that is received via postMessage (previously referred to as |
Beta Was this translation helpful? Give feedback.
I just landed a change the re-introduces
instantiateWasm
in pthread workers: #22912However, even after this change I fear that #21701 may have change pthread creations in other ways that break your use case since
urlOrBlob
is not longer passed to new workers.mainScriptUrlOrBlob
can still be used to tell emscripten how to find main script, but this is then used directly to create new workers rather then passed as an argument to the separateworker.js
file (which no longer exists).Perhaps you can say more about what you are trying to do in your
instantiateWasm
withing your pthread workers? Pthread workers already have access to the wasm module directly so they should know how to instanti…