I'm experimenting with adding web workers and pthreads to my project. I've got some simple test code that attempts to modify objects defined in the global scope in a web worker or a pthread.
When the code that modifies the object runs in the WW I get "_emval_take_value has unknown type d". My run_in_worker() function, where this error occurs, works fine as long as I call it directly. It's only when I attempt to post it to the worker that the binding error manifests. In the pthread version it seems that some JavaScript val objects representing DOM elements for various html tags that are defined in the main thread do not get defined in the pthread. So we get "Cannot read properties of undefined (reading 'value')" when trying to modify them in the pthread. There are also some oddities about printf, cout, and console.log where some messages that have supposedly printed do not show up in the console output. Anyone know what all this is about and how to fix it? -- 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 on the web visit https://groups.google.com/d/msgid/emscripten-discuss/84bff0a5-53c6-46ee-9d39-f03f0cbf98can%40googlegroups.com.