(depth, options, name, data)
| 82 | } |
| 83 | |
| 84 | function customInspect(depth, options, name, data) { |
| 85 | if (depth < 0) |
| 86 | return this; |
| 87 | |
| 88 | const opts = { |
| 89 | ...options, |
| 90 | depth: options.depth == null ? null : options.depth - 1, |
| 91 | }; |
| 92 | |
| 93 | return `${name} ${inspect(data, opts)}`; |
| 94 | } |
| 95 | |
| 96 | // These are defensive to work around the possibility that |
| 97 | // the buffer, byteLength, and byteOffset properties on |
no test coverage detected