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

Function customInspect

lib/internal/abort_controller.js:124–133  ·  view source on GitHub ↗
(self, obj, depth, options)

Source from the content-addressed store, hash-verified

122const kDependantSignals = Symbol('kDependantSignals');
123
124function customInspect(self, obj, depth, options) {
125 if (depth < 0)
126 return self;
127
128 const opts = ObjectAssign({}, options, {
129 depth: options.depth === null ? null : options.depth - 1,
130 });
131
132 return `${self.constructor.name} ${inspect(obj, opts)}`;
133}
134
135function validateThisAbortSignal(obj) {
136 if (obj?.[kAborted] === undefined)

Callers 2

[customInspectSymbol]Method · 0.70
[customInspectSymbol]Method · 0.70

Calls 2

ObjectAssignFunction · 0.85
inspectFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…