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

Function inspectValue

lib/internal/assert/assertion_error.js:72–88  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

70}
71
72function inspectValue(val) {
73 // The util.inspect default values could be changed. This makes sure the
74 // error messages contain the necessary information nevertheless.
75 return inspect(val, {
76 compact: false,
77 customInspect: false,
78 depth: 1000,
79 maxArrayLength: Infinity,
80 // Assert compares only enumerable properties (with a few exceptions).
81 showHidden: false,
82 // Assert does not detect proxies currently.
83 showProxy: false,
84 sorted: true,
85 // Inspect getters as we also check them when comparing entries.
86 getters: true,
87 });
88}
89
90function getErrorMessage(operator, message) {
91 return message || kReadableOperator[operator];

Callers 2

createErrDiffFunction · 0.70
constructorMethod · 0.70

Calls 1

inspectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…