(config: DebugInfoConfig, obj)
| 111 | } |
| 112 | |
| 113 | export function getDebugInfo(config: DebugInfoConfig, obj) { |
| 114 | const debugInfo = obj._debugInfo; |
| 115 | if (debugInfo) { |
| 116 | const copy = []; |
| 117 | for (let i = 0; i < debugInfo.length; i++) { |
| 118 | if ( |
| 119 | debugInfo[i].awaited && |
| 120 | debugInfo[i].awaited.name === 'RSC stream' && |
| 121 | config.ignoreRscStreamInfo |
| 122 | ) { |
| 123 | // Ignore RSC stream I/O info. |
| 124 | } else { |
| 125 | copy.push(normalizeDebugInfo(config, debugInfo[i])); |
| 126 | } |
| 127 | } |
| 128 | return copy; |
| 129 | } |
| 130 | return debugInfo; |
| 131 | } |