(promise: ZoneAwarePromise<any>, state: boolean)
| 106 | const REJECTED_NO_CATCH = 0; |
| 107 | |
| 108 | function makeResolver(promise: ZoneAwarePromise<any>, state: boolean): (value: any) => void { |
| 109 | return (v: any) => { |
| 110 | try { |
| 111 | resolvePromise(promise, state, v); |
| 112 | } catch (err) { |
| 113 | resolvePromise(promise, false, err); |
| 114 | } |
| 115 | // Do not return value or you will break the Promise spec. |
| 116 | }; |
| 117 | } |
| 118 | |
| 119 | const once = function () { |
| 120 | let wasCalled = false; |
no test coverage detected
searching dependent graphs…