* @this {object} * @param {string} key * @param {unknown} value
(key, value)
| 322 | * @param {unknown} value |
| 323 | */ |
| 324 | function circularReplacer (key, value) { |
| 325 | return key === 'self' ? this : value |
| 326 | } |
| 327 | const root = { child: { self: 0 }, self: 0 } |
| 328 | const expected = { child: { self: '[Circular: 1]' }, self: '[Circular: 0]' } |
| 329 | for (const space of [undefined, 2]) { |
nothing calls this directly
no outgoing calls
no test coverage detected