normalizeDebugInfo() — react Function Reference
Architecture documentation for the normalizeDebugInfo() function in debugInfo.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4bfbffb0_89fc_0242_664a_966e634a6a47["normalizeDebugInfo()"] 46a94f52_c44a_45bb_dd31_eb8109978851["debugInfo.js"] 4bfbffb0_89fc_0242_664a_966e634a6a47 -->|defined in| 46a94f52_c44a_45bb_dd31_eb8109978851 58be0028_746e_ad50_4976_f091aa791dab["normalizeIOInfo()"] 58be0028_746e_ad50_4976_f091aa791dab -->|calls| 4bfbffb0_89fc_0242_664a_966e634a6a47 eb293159_a9b3_09a4_1c57_0952f29b736b["getDebugInfo()"] eb293159_a9b3_09a4_1c57_0952f29b736b -->|calls| 4bfbffb0_89fc_0242_664a_966e634a6a47 58be0028_746e_ad50_4976_f091aa791dab["normalizeIOInfo()"] 4bfbffb0_89fc_0242_664a_966e634a6a47 -->|calls| 58be0028_746e_ad50_4976_f091aa791dab baf09f87_d020_a596_f252_273eafc905ae["formatV8Stack()"] 4bfbffb0_89fc_0242_664a_966e634a6a47 -->|calls| baf09f87_d020_a596_f252_273eafc905ae 88cd6d4c_263c_1e63_ca3a_d9c352f8403b["normalizeStack()"] 4bfbffb0_89fc_0242_664a_966e634a6a47 -->|calls| 88cd6d4c_263c_1e63_ca3a_d9c352f8403b style 4bfbffb0_89fc_0242_664a_966e634a6a47 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-test-utils/debugInfo.js lines 98–119
function normalizeDebugInfo(config: DebugInfoConfig, original) {
const {debugTask, debugStack, debugLocation, ...debugInfo} = original;
if (original.owner) {
debugInfo.owner = normalizeDebugInfo(config, original.owner);
}
if (original.awaited) {
debugInfo.awaited = normalizeIOInfo(config, original.awaited);
}
if (debugInfo.props && config.ignoreProps) {
debugInfo.props = {};
}
if (Array.isArray(debugInfo.stack)) {
debugInfo.stack = config.useV8Stack
? formatV8Stack(debugInfo.stack)
: normalizeStack(debugInfo.stack);
return debugInfo;
} else if (typeof debugInfo.time === 'number' && config.useFixedTime) {
return {...debugInfo, time: 0};
} else {
return debugInfo;
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does normalizeDebugInfo() do?
normalizeDebugInfo() is a function in the react codebase, defined in packages/internal-test-utils/debugInfo.js.
Where is normalizeDebugInfo() defined?
normalizeDebugInfo() is defined in packages/internal-test-utils/debugInfo.js at line 98.
What does normalizeDebugInfo() call?
normalizeDebugInfo() calls 3 function(s): formatV8Stack, normalizeIOInfo, normalizeStack.
What calls normalizeDebugInfo()?
normalizeDebugInfo() is called by 2 function(s): getDebugInfo, normalizeIOInfo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free