You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Response.json does not throw errors with circular data.
Observed behaviour
Stack overflow.
Expected behaviour
An error should have been thrown. With node.js,
> Response.json(a)
Uncaught TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
--- property 'a' closes the circle
at JSON.stringify (<anonymous>)
at serializeJavascriptValueToJSONString (node:internal/deps/undici/undici:1594:27)
at Response.json (node:internal/deps/undici/undici:5659:11)
Description
Response.json
does not throw errors with circular data.Observed behaviour
Stack overflow.
Expected behaviour
An error should have been thrown. With node.js,
Steps to reproduce
The text was updated successfully, but these errors were encountered: