cloudflare / cloudflare/workerd
Feature Request — Runtime APIs: Superfluous throws
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
in the RequestInitializerDict struct ([here](https://github.com/cloudflare/workerd/blob/main/src/workerd/api/http.h#L529-L549)), the WontImplement field is set. This causes a hard-crash where libraries would like to support browsers, which require this API, and workers, which makes it illegal to specify at all. It's also very difficult to work around this, as it's specified in multiple places that this should *immediately* cause an unrecoverable crash.
Related:
https://github.com/developit/redaxios/issues/64
https://github.com/cloudflare/workers-sdk/issues/2514
https://github.com/ethers-io/ethers.js/issues/1886
https://github.com/sindresorhus/ky/issues/366
Contributor guide
Assessment
This issue has not been assessed yet.