You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing any custom -s EXPORT_NAME=... in combination with -pthread fails to execute the resulting code in Node.js:
rreverser@rreverser:~/emscripten$ ./emcc -pthread temp.c -o temp.js -s PTHREAD_POOL_SIZE=1
rreverser@rreverser:~/emscripten$ node --experimental-wasm-threads --experimental-wasm-bulk-memory temp.js
Before Thread
Printing GeeksQuiz from Thread
After Thread
main thread called exit: keepRuntimeAlive=true (counter=0)
program exited (with status: 0), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)
rreverser@rreverser:~/emscripten$ ./emcc -pthread temp.c -o temp.js -s PTHREAD_POOL_SIZE=1 -s EXPORT_NAME=Smth
rreverser@rreverser:~/emscripten$ node --experimental-wasm-threads --experimental-wasm-bulk-memory temp.js
worker.js onmessage() captured an uncaught exception: ReferenceError: __filename is not defined
pthread sent an error! undefined:undefined: __filename is not defined
The text was updated successfully, but these errors were encountered:
Passing any custom
-s EXPORT_NAME=...
in combination with-pthread
fails to execute the resulting code in Node.js:The text was updated successfully, but these errors were encountered: