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

Function stripProbePreviews

lib/internal/debugger/inspect_probe.js:184–201  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

182}
183
184function stripProbePreviews(value) {
185 if (value === undefined || value === null || typeof value !== 'object') {
186 return value;
187 }
188
189 if (ArrayIsArray(value)) {
190 return ArrayPrototypeMap(value, stripProbePreviews);
191 }
192
193 const stripped = { __proto__: null };
194 for (const { 0: key, 1: entry } of ObjectEntries(value)) {
195 if (key === 'preview') {
196 continue;
197 }
198 stripped[key] = stripProbePreviews(entry);
199 }
200 return stripped;
201}
202
203// Format CDP RemoteObject values into more readable formats.
204function formatRemoteObject(result) {

Callers 1

runProbeModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected