Reported here: https://github.com/kripken/emscripten/issues/6903#issuecomment-437320418
In the case of an SVG we probably want:
scriptDirectory = self.location.href;
Instead of:
scriptDirectory = document.currentScript.src;
as the latter is null.
As a workaround one can compile with -s ENVIRONMENT=worker to enforce this behavior.
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
This is still an issue. The workaround _works_, but is still a _workaround_.
Ok, let's reopen it, hopefully someone will want to look into fixing it.