(request: Request, id: number)
| 4226 | } |
| 4227 | |
| 4228 | function emitDebugHaltChunk(request: Request, id: number): void { |
| 4229 | if (!__DEV__) { |
| 4230 | // These errors should never make it into a build so we don't need to encode them in codes.json |
| 4231 | // eslint-disable-next-line react-internal/prod-error-codes |
| 4232 | throw new Error( |
| 4233 | 'emitDebugHaltChunk should never be called in production mode. This is a bug in React.', |
| 4234 | ); |
| 4235 | } |
| 4236 | // This emits a marker that this row will never complete and should intentionally never resolve |
| 4237 | // even when the client stream is closed. We use just the lack of data to indicate this. |
| 4238 | const row = id.toString(16) + ':\n'; |
| 4239 | const processedChunk = stringToChunk(row); |
| 4240 | request.completedDebugChunks.push(processedChunk); |
| 4241 | } |
| 4242 | |
| 4243 | function emitDebugChunk( |
| 4244 | request: Request, |
no test coverage detected