normalizeStack() — react Function Reference
Architecture documentation for the normalizeStack() function in debugInfo.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 88cd6d4c_263c_1e63_ca3a_d9c352f8403b["normalizeStack()"] 46a94f52_c44a_45bb_dd31_eb8109978851["debugInfo.js"] 88cd6d4c_263c_1e63_ca3a_d9c352f8403b -->|defined in| 46a94f52_c44a_45bb_dd31_eb8109978851 58be0028_746e_ad50_4976_f091aa791dab["normalizeIOInfo()"] 58be0028_746e_ad50_4976_f091aa791dab -->|calls| 88cd6d4c_263c_1e63_ca3a_d9c352f8403b 4bfbffb0_89fc_0242_664a_966e634a6a47["normalizeDebugInfo()"] 4bfbffb0_89fc_0242_664a_966e634a6a47 -->|calls| 88cd6d4c_263c_1e63_ca3a_d9c352f8403b style 88cd6d4c_263c_1e63_ca3a_d9c352f8403b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-test-utils/debugInfo.js lines 24–41
function normalizeStack(stack) {
if (!stack) {
return stack;
}
const copy = [];
for (let i = 0; i < stack.length; i++) {
const [name, file, line, col, enclosingLine, enclosingCol] = stack[i];
copy.push([
name,
file.replace(__REACT_ROOT_PATH_TEST__, ''),
line,
col,
enclosingLine,
enclosingCol,
]);
}
return copy;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does normalizeStack() do?
normalizeStack() is a function in the react codebase, defined in packages/internal-test-utils/debugInfo.js.
Where is normalizeStack() defined?
normalizeStack() is defined in packages/internal-test-utils/debugInfo.js at line 24.
What calls normalizeStack()?
normalizeStack() is called by 2 function(s): normalizeDebugInfo, normalizeIOInfo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free