Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request — Runtime APIs: Superfluous throws #902

Open
randomairborne opened this issue Jul 22, 2023 · 0 comments
Open

Feature Request — Runtime APIs: Superfluous throws #902

randomairborne opened this issue Jul 22, 2023 · 0 comments

Comments

@randomairborne
Copy link

in the RequestInitializerDict struct (here), 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:
developit/redaxios#64
cloudflare/workers-sdk#2514
ethers-io/ethers.js#1886
sindresorhus/ky#366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant