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

Function dumpValue

deps/v8/test/inspector/protocol-test.js:68–77  ·  view source on GitHub ↗
(value, prefix, prefixWithName)

Source from the content-addressed store, hash-verified

66 var lines = [];
67
68 function dumpValue(value, prefix, prefixWithName) {
69 if (typeof value === "object" && value !== null) {
70 if (value instanceof Array)
71 dumpItems(value, prefix, prefixWithName);
72 else
73 dumpProperties(value, prefix, prefixWithName);
74 } else {
75 lines.push(prefixWithName + String(value).replace(/\n/g, " "));
76 }
77 }
78
79 function dumpProperties(object, prefix, firstLinePrefix) {
80 prefix = prefix || "";

Callers 3

dumpPropertiesFunction · 0.85
dumpItemsFunction · 0.85
protocol-test.jsFile · 0.85

Calls 4

dumpItemsFunction · 0.85
StringClass · 0.85
dumpPropertiesFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…