wasm: add error message to WouldBlockException
This commit attaches an error message to WouldBlockException, for now the error message consists of the JS async import code snippet that thunk is trying to block for. This is useful for debugging synchronous callbacks that accidentally call an async JS function. (cherry picked from commit 9b54eecb) (cherry picked from commit a0995a9d)
Showing
- compiler/GHC/HsToCore/Foreign/Wasm.hs 2 additions, 1 deletioncompiler/GHC/HsToCore/Foreign/Wasm.hs
- libraries/ghc-internal/src/GHC/Internal/Wasm/Prim/Imports.hs 3 additions, 3 deletionslibraries/ghc-internal/src/GHC/Internal/Wasm/Prim/Imports.hs
- libraries/ghc-internal/src/GHC/Internal/Wasm/Prim/Types.hs 2 additions, 2 deletionslibraries/ghc-internal/src/GHC/Internal/Wasm/Prim/Types.hs
- testsuite/tests/jsffi/jsffisleep.hs 2 additions, 2 deletionstestsuite/tests/jsffi/jsffisleep.hs
- testsuite/tests/jsffi/jsffisleep.stdout 1 addition, 1 deletiontestsuite/tests/jsffi/jsffisleep.stdout
Loading
Please register or sign in to comment