( request: Request, task: Task, thenable: Thenable<any>, owner: null | ReactComponentInfo, // DEV-only stack: null | Error, // DEV-only )
| 5317 | } |
| 5318 | |
| 5319 | function forwardDebugInfoFromThenable( |
| 5320 | request: Request, |
| 5321 | task: Task, |
| 5322 | thenable: Thenable<any>, |
| 5323 | owner: null | ReactComponentInfo, // DEV-only |
| 5324 | stack: null | Error, // DEV-only |
| 5325 | ): void { |
| 5326 | let debugInfo: ?ReactDebugInfo; |
| 5327 | if (__DEV__) { |
| 5328 | // If this came from Flight, forward any debug info into this new row. |
| 5329 | debugInfo = thenable._debugInfo; |
| 5330 | if (debugInfo) { |
| 5331 | forwardDebugInfo(request, task, debugInfo); |
| 5332 | } |
| 5333 | } |
| 5334 | if (enableProfilerTimer && enableAsyncDebugInfo) { |
| 5335 | const sequence = getAsyncSequenceFromPromise(thenable); |
| 5336 | if (sequence !== null) { |
| 5337 | emitAsyncSequence(request, task, sequence, debugInfo, owner, stack); |
| 5338 | } |
| 5339 | } |
| 5340 | } |
| 5341 | |
| 5342 | function forwardDebugInfoFromCurrentContext( |
| 5343 | request: Request, |
no test coverage detected