Closed Zulu-Inuoe closed 1 year ago
So I've decided to 180 on this and keep error
-ing on circular references per the spec for in-browser JSON.stringify:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
This is simpler and likely less controversial
stringify
dies on recursive structures:At the very least we should have circularity detection by default. per what to do when it's encountered, I am leaning towards having these two options available:
"recursive-ref__request->easy-acceptor->one-thread-per-connection-taskmaster->easy-acceptor"
.By default, I prefer the 'fail silently' option since it's more DWIM when a user is simply trying to inspect some object