MCPcopy Index your code
hub / github.com/angular/angular / readableObjectToString

Function readableObjectToString

packages/zone.js/lib/common/promise.ts:17–24  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

15 const ObjectDefineProperty = Object.defineProperty;
16
17 function readableObjectToString(obj: any) {
18 if (obj && obj.toString === Object.prototype.toString) {
19 const className = obj.constructor && obj.constructor.name;
20 return (className ? className : '') + ': ' + JSON.stringify(obj);
21 }
22
23 return obj ? obj.toString() : Object.prototype.toString.call(obj);
24 }
25
26 const __symbol__ = api.symbol;
27 const _uncaughtPromiseErrors: UncaughtPromiseError[] = [];

Callers 1

resolvePromiseFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…