MichaelBalazs
MichaelBalazs
If I try to do an async call (emscripten_async_wget2 or emscripten_async_call) within a web worker, I am no longer able to call emscripten_worker_respond without getting this error: InternalError: uncaught exception:...
wget calls in web worker causes refernce to worker to be lost preventing emscripten_worker_respond
If I try to do an wget call (emscripten_async_wget2 or emscripten_wget) within a web worker, I am no longer able to call emscripten_worker_respond without getting this error: InternalError: uncaught exception:...
https://github.com/kripken/emscripten/blob/c4b8ad6343950fcd479908ca11d5dff8a8c4081c/src/library_trace.js#L51 Simply changing to `window.URL.createObjectURL(blob)` to `URL.createObjectURL(blob)` resolves the issue and is supported in all major browsers: https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL