MCPcopy Create free account
hub / github.com/agentrpc/agentrpc / toJSON

Function toJSON

sdk-node/src/serialize-error.js:75–80  ·  view source on GitHub ↗
(from)

Source from the content-addressed store, hash-verified

73const toJsonWasCalled = new WeakSet();
74
75const toJSON = (from) => {
76 toJsonWasCalled.add(from);
77 const json = from.toJSON();
78 toJsonWasCalled.delete(from);
79 return json;
80};
81
82const getErrorConstructor = (name) => errorConstructors.get(name) ?? Error;
83

Callers 1

destroyCircularFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected