()
| 2068 | |
| 2069 | // eslint-disable-next-line |
| 2070 | const obj = { b: 2, c: { a: true, toJSON () { throw { toString() { throw new Error('Yikes') } } } }, a: 1 } |
| 2071 | const expected = '{\n "a": 1,\n "b": 2,\n "c": "Error: Stringification failed with toJSON (Failed)"\n}' |
| 2072 | const actual = serializer(obj, null, 1) |
| 2073 | assert.equal(actual, expected) |
nothing calls this directly
no outgoing calls
no test coverage detected