WebAssembly: improve stack trace