MCPcopy
hub / github.com/angular/angular / constructor

Method constructor

packages/zone.js/test/common/Promise.spec.ts:97–99  ·  view source on GitHub ↗
(fn: any)

Source from the content-addressed store, hash-verified

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 });

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected