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

Function token

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

Source from the content-addressed store, hash-verified

2079 const serializer = stringify.configure({ safe: true })
2080 for (const message of ['Missing "token"', 'line\nbreak', 'path\\file', '\u0000', '\ud800']) {
2081 const input = { get token () { throw new Error(message) } }
2082 const expected = `Error: Stringification failed (${message})`
2083 const results = [
2084 serializer(input),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected