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

Class MyPromise

packages/zone.js/test/common/Promise.spec.ts:96–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95 it('should allow subclassing without Symbol.species', () => {
96 class MyPromise extends Promise<any> {
97 constructor(fn: any) {
98 super(fn);
99 }
100 }
101 expect(new MyPromise(() => {}).then(() => null) instanceof MyPromise).toBe(true);
102 });
103

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…