cloudflare / cloudflare/workerd

Feature Request — Runtime APIs: Superfluous throws

Open
#902 0 comments 11 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.