MCPcopy Index your code
hub / github.com/nodejs/node / customInspect

Function customInspect

lib/internal/webstreams/util.js:84–94  ·  view source on GitHub ↗
(depth, options, name, data)

Source from the content-addressed store, hash-verified

82}
83
84function 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

Callers 15

[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70
[kInspect]Method · 0.70

Calls 1

inspectFunction · 0.50

Tested by

no test coverage detected