dillon1000/react

Commit

[DevTools] Add structure full stack parsing to DevTools (#34093)

We'll need complete parsing of stack traces for both owner stacks and
async debug info so we need to expand the stack parsing capabilities a
bit. This refactors the source location extraction to use some helpers
we can use for other things too.

This is a fork of `ReactFlightStackConfigV8` which also supports
DevTools requirements like checking both `react_stack_bottom_frame` and
`react-stack-bottom-frame` as well as supporting Firefox stacks.

It also supports extracting the first frame of a component stack or the
last frame of an owner stack for the source location.
Browse files
Changed paths5 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/utils-test.js ModifiedM packages/react-devtools-shared/src/backend/fiber/renderer.js ModifiedM packages/react-devtools-shared/src/backend/shared/DevToolsOwnerStack.js ModifiedM packages/react-devtools-shared/src/backend/utils/index.js ModifiedA packages/react-devtools-shared/src/backend/utils/parseStackTrace.js Added
Patch

Files changed

Rendering syntax-highlighted changes…