MCPcopy Create free account
hub / github.com/angular/angular / unhandledRejection

Function unhandledRejection

packages/zone.js/test/browser/XMLHttpRequest.spec.ts:178–180  ·  view source on GitHub ↗
(e: PromiseRejectionEvent)

Source from the content-addressed store, hash-verified

176 throw new Error('test');
177 };
178 const unhandledRejection = (e: PromiseRejectionEvent) => {
179 fail('should not be here');
180 };
181 window.addEventListener('unhandledrejection', unhandledRejection);
182 req.addEventListener('load', () => {
183 logs.push('onload1');

Callers

nothing calls this directly

Calls 1

failFunction · 0.85

Tested by

no test coverage detected