Closed poorna2152 closed 2 years ago
Explicitly thrown errors uses a tag to distinguish them. For example for,
(throw $overflow)
(throw $bad-casting)
But the error message emitted in the JS does not contain this tag thus it cannot distinguish between explicitly thrown errors https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/Exceptions.md
It is possible to do this by,
WebAssembly.Exception
err.is(tag)
Explicitly thrown errors uses a tag to distinguish them. For example for,
(throw $overflow)
(throw $bad-casting)
But the error message emitted in the JS does not contain this tag thus it cannot distinguish between explicitly thrown errors https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/Exceptions.md