MCPcopy Create free account
hub / github.com/BridgeAR/safe-stable-stringify / toJSON

Function toJSON

test.js:310–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308
309test('toJSON results refer to serialized ancestor depths', /** @param {import('tap').Test} assert */ (assert) => {
310 const root = { child: { link: { toJSON () { return root } } } }
311 const wrapper = { toJSON () { return root } }
312 assertCircularOutput(assert, stringify, wrapper, {
313 child: { link: '[Circular: 0]' }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected