cloudflare / cloudflare/workerd

Response.json() should throw with top level value of function symbol undefined

Open
#4,597 4 comments 0 reactions 1 assignee Claimed by @jasnell View on GitHub
fetch spec-compliance wpt-conformance
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

```ts
function func() { }
let symb = Symbol("test");
let undef = undefined

let r1 = Response.json(symb); // should throw here
let r2 = Response.json(func); // should throw here
let r3 = Response.json(undef); // should throw here
```
currently these don't throw. read more: https://github.com/oven-sh/bun/issues/21257

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.