-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
Milestone
Description
The work to enable WASM to use SubtleCrypto, #65966, had some follow ups on how to handle error cases. Specifically, the communication channel with the web worker could be hardened to convey more errors/failures. This could be accomplished through throwing an exception or the web worker communicating a failure case explicitly.
Source hints:
crypto-worker.ts- see
read_responseand consider throwing anerror.
- see
dotnet-crypto-worker.js- The reading in of a request could be including in the
try/catchinawait_request. - The
await_requestfunction could return a bespoke "error occurred" message instead of an exception string.
- The reading in of a request could be including in the
See #69741