()
| 1970 | const serializer = stringify.configure({ safe: true }) |
| 1971 | |
| 1972 | const obj = { b: 2, c: { a: true, get b () { throw new Error('Oops') } }, a: 1 } |
| 1973 | const expected = '{\n "a": 1,\n "b": 2,\n "c": "Error: Stringification failed (Oops)"\n}' |
| 1974 | const actual = serializer(obj, null, 1) |
| 1975 | assert.equal(actual, expected) |
nothing calls this directly
no outgoing calls
no test coverage detected