-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/
Description
When our tests fail in bors on a wasm target, there is no error message except RuntimeError: unreachable
(example). There is nothing to print the panic message to the console.
I think this could be fixed by adding console_error_panic_hook as dependency somehow, but I'm not quite sure how to do this.
Here's an example project that sets up this dependency to run with a test: async-fn-size. Thanks to @Mark-Simulacrum for figuring this out!
Metadata
Metadata
Assignees
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.Category: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/