areSourceMapsAppliedToErrors() — react Function Reference
Architecture documentation for the areSourceMapsAppliedToErrors() function in ErrorTester.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD e143ca4a_ec05_68bf_1723_c70d5b1ab460["areSourceMapsAppliedToErrors()"] 622e536b_9c72_69d0_58d6_fc8851cbebb0["ErrorTester.js"] e143ca4a_ec05_68bf_1723_c70d5b1ab460 -->|defined in| 622e536b_9c72_69d0_58d6_fc8851cbebb0 9d4ba273_e848_2a3f_3413_5c52ec3c7da7["parseSourceAST()"] 9d4ba273_e848_2a3f_3413_5c52ec3c7da7 -->|calls| e143ca4a_ec05_68bf_1723_c70d5b1ab460 48652f6c_0089_af78_cb48_b9f55b933050["testErrorStack()"] e143ca4a_ec05_68bf_1723_c70d5b1ab460 -->|calls| 48652f6c_0089_af78_cb48_b9f55b933050 style e143ca4a_ec05_68bf_1723_c70d5b1ab460 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/hooks/ErrorTester.js lines 18–34
export function areSourceMapsAppliedToErrors(): boolean {
if (sourceMapsAreAppliedToErrors === null) {
try {
testErrorStack();
sourceMapsAreAppliedToErrors = false;
} catch (error) {
const parsed = ErrorStackParser.parse(error);
const topStackFrame = parsed[0];
const lineNumber = topStackFrame.lineNumber;
if (lineNumber === SOURCE_STACK_FRAME_LINE_NUMBER) {
sourceMapsAreAppliedToErrors = true;
}
}
}
return sourceMapsAreAppliedToErrors === true;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does areSourceMapsAppliedToErrors() do?
areSourceMapsAppliedToErrors() is a function in the react codebase, defined in packages/react-devtools-shared/src/hooks/ErrorTester.js.
Where is areSourceMapsAppliedToErrors() defined?
areSourceMapsAppliedToErrors() is defined in packages/react-devtools-shared/src/hooks/ErrorTester.js at line 18.
What does areSourceMapsAppliedToErrors() call?
areSourceMapsAppliedToErrors() calls 1 function(s): testErrorStack.
What calls areSourceMapsAppliedToErrors()?
areSourceMapsAppliedToErrors() is called by 1 function(s): parseSourceAST.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free