(fn: any)
| 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 | }); |