(status: any, value: any, reason: any)
| 252 | |
| 253 | // $FlowFixMe[missing-this-annot] |
| 254 | function ReactPromise(status: any, value: any, reason: any) { |
| 255 | this.status = status; |
| 256 | this.value = value; |
| 257 | this.reason = reason; |
| 258 | if (enableProfilerTimer && enableComponentPerformanceTrack) { |
| 259 | this._children = []; |
| 260 | } |
| 261 | if (__DEV__) { |
| 262 | this._debugChunk = null; |
| 263 | this._debugInfo = []; |
| 264 | } |
| 265 | } |
| 266 | // We subclass Promise.prototype so that we get other methods like .catch |
| 267 | ReactPromise.prototype = (Object.create(Promise.prototype): any); |
| 268 | // TODO: This doesn't return a new Promise chain unlike the real .then |
nothing calls this directly
no test coverage detected