Hello, let me share a sample <https://github.com/AndriiVovkWorkspot/EmscriptenBindingsPthread> for reproducing the issue which occurs when using Emscripten bindings in pthread.
Compilation arguments: *$ emcc --bind -o build/emscripten_bindings_pthread.js -s USE_PTHREADS=1 -s PROXY_TO_PTHREAD=1 emscripten_bindings_pthread.cpp* Expected behavior: *invoke() called with "test" argument* log message displaying in browser console. Actual behavior: Error is thrown. *Uncaught TypeError: Cannot read property 'value' of undefined at requireHandle (http://localhost:8000/build/emscripten_bindings_pthread.js:2378:41) at __emval_call_void_method (http://localhost:8000/build/emscripten_bindings_pthread.js:3945:16) at <anonymous>:wasm-function[138]:0x2681 at <anonymous>:wasm-function[137]:0x2603 at <anonymous>:wasm-function[133]:0x2554 at <anonymous>:wasm-function[132]:0x24fe at <anonymous>:wasm-function[47]:0xec1 at Object.dynCall (http://localhost:8000/build/emscripten_bindings_pthread.js:1790:33) at onmessage (http://localhost:8000/build/emscripten_bindings_pthread.worker.js:130:39)* -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/bfba735d-7080-48a3-ab1d-1b206b37c46an%40googlegroups.com.
