MCPcopy
hub / github.com/angular/angular / stringifyForError

Function stringifyForError

packages/core/src/render3/util/stringify_utils.ts:33–40  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

31 * used for error messages.
32 */
33export function stringifyForError(value: any): string {
34 if (typeof value === 'function') return value.name || value.toString();
35 if (typeof value === 'object' && value != null && typeof value.type === 'function') {
36 return value.type.name || value.type.toString();
37 }
38
39 return renderStringify(value);
40}
41
42/**
43 * Used to stringify a `Type` and including the file path and line number in which it is defined, if

Callers 15

errorForFunction · 0.90
reconcileFunction · 0.90
getNodeInjectableFunction · 0.90
inputBindingUpdateFunction · 0.90
assertComponentDefFunction · 0.90
createRootTViewFunction · 0.90
setInputMethod · 0.90

Calls 2

renderStringifyFunction · 0.85
toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…