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

Function inspect

deps/v8/tools/windbg.js:119–128  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

117}
118
119function inspect(s) {
120 for (let k of Reflect.ownKeys(s)) {
121 // Attempting to print either of:
122 // 'Reflect.get(s, k)', 'typeof Reflect.get(s, k)', 's[k]'
123 // might throw: "Error: Object does not have a size",
124 // while 'typeof s[k]' returns 'undefined' and prints the full list of
125 // properties. Oh well...
126 print(`${k} => ${typeof s[k]}`);
127 }
128}
129
130function hex(number) {
131 return `0x${number.toString(16)}`;

Callers 8

compare.jsFile · 0.50
mainFunction · 0.50
enable2faMethod · 0.50
#packageOutputMethod · 0.50
queryable.jsFile · 0.50
profile.jsFile · 0.50
index.jsFile · 0.50

Calls 1

printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…