[DevTools] Always skip 1 frame (#34167)

Follow up to #34093.

There's an issue where the skipFrames argument isn't part of the cache
key so the other parsers that expect skipping one frame might skip zero
and show the internal `fakeJSXDEV` callsite. Ideally we should include
the skipFrames as part of the cache key but we can also always just skip
one.
This commit is contained in:
Sebastian Markbåge
2025-08-11 01:50:26 -04:00
committed by GitHub
parent 98286cf8e3
commit 594fb5e9ab

View File

@@ -284,7 +284,7 @@ export function parseStackTrace(
export function extractLocationFromOwnerStack(
error: Error,
): ReactFunctionLocation | null {
const stackTrace = parseStackTrace(error, 0);
const stackTrace = parseStackTrace(error, 1);
const stack = error.stack;
if (
!stack.includes('react_stack_bottom_frame') &&