demo: https://bugzpodder.pyscriptapps.com/xworker-sync-hangs-when-raise-error-copy-copy-copy/latest/
I have specified onmessage (expecting pyodide:ready) and onerror (exepectng error to get passed here) callback and they does not get called in the code.
Let me know if I am doing something wrong.