Skip to content

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

@huseeiin

Description

@huseeiin
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: oven-sh/bun#21257

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions