MCPcopy Index your code
hub / github.com/nodejs/node / [kInspect]

Method [kInspect]

lib/internal/socketaddress.js:105–115  ·  view source on GitHub ↗
(depth, options)

Source from the content-addressed store, hash-verified

103 }
104
105 [kInspect](depth, options) {
106 if (depth < 0)
107 return this;
108
109 const opts = {
110 ...options,
111 depth: options.depth == null ? null : options.depth - 1,
112 };
113
114 return `SocketAddress ${inspect(this.toJSON(), opts)}`;
115 }
116
117 [kClone]() {
118 const handle = this[kHandle];

Callers

nothing calls this directly

Calls 2

toJSONMethod · 0.95
inspectFunction · 0.70

Tested by

no test coverage detected