is this an oversight in the stdlib (e.g. a Zig bug), or expected behaviour?
is the above override of the panic handler the recommended workaround, or is there a better way?
…e.g. there is this new --single-threaded cmdline option, can this be used to force the problematic std.Io.Threaded into single-threaded mode (and would that even help)? If yes, how is this used in via build.zig? (haven’t found anything in the std doc page).
For anyone who needs to compile for Emscripten using 0.16 instead of 0.17-dev, there are no simple fully functional workarounds. However, if you declare
in your root source file, your code should at least compile, with the caveat that most std APIs that try to write to stderr might panic (by virtue of calling the failing lockStderr() implementation, which contains an unreachable statement).