Fix some argument validation issues in fetch()

Merged
JA
2y ago
+988-545

What does this PR do?

Fix some argument validation issues in fetch()

Fixes https://github.com/oven-sh/bun/issues/12764
Fixes https://github.com/oven-sh/bun/issues/12483

How did you verify your code works?

There are tests