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

Function handleUnhandledRejection

packages/zone.js/lib/common/promise.ts:75–83  ·  view source on GitHub ↗
(this: unknown, e: any)

Source from the content-addressed store, hash-verified

73 );
74
75 function handleUnhandledRejection(this: unknown, e: any) {
76 api.onUnhandledError(e);
77 try {
78 const handler = (Zone as any)[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];
79 if (typeof handler === 'function') {
80 handler.call(this, e);
81 }
82 } catch (err) {}
83 }
84
85 function isThenable(value: any): boolean {
86 return value && typeof value.then === 'function';

Callers 1

patchPromiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…