From 3561791ff82df1a44b5906f1dd2b6ff823bb9f34 Mon Sep 17 00:00:00 2001 From: Ruslan Lesiutin Date: Thu, 3 Jul 2025 11:38:05 -0700 Subject: [PATCH] fix: rename bottom stack frame (#33680) (#52400) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52400 `react-stack-bottom-frame` -> `react_stack_bottom_frame`. This survives `babel/plugin-transform-function-name`, but now frames will be displayed as `at Object.react_stack_bottom_frame (...)` in V8. Checks that were relying on exact function name match were updated to use either `.indexOf()` or `.includes()` For backwards compatibility, both React DevTools and Flight Client will look for both options. I am not so sure about the latter and if React version is locked. DiffTrain build for [91d097b2c588a0977a7a10ed12512dc8a34e3a5b](https://github.com/facebook/react/commit/91d097b2c588a0977a7a10ed12512dc8a34e3a5b) Reviewed By: jackpope Differential Revision: D77601866 fbshipit-source-id: 24ed8713af4bebbaeb7a612333cd79c51b696565 --- .../react-native/Libraries/LogBox/__tests__/LogBox-itest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/LogBox/__tests__/LogBox-itest.js b/packages/react-native/Libraries/LogBox/__tests__/LogBox-itest.js index 00ef757eaf2..b59f177630f 100644 --- a/packages/react-native/Libraries/LogBox/__tests__/LogBox-itest.js +++ b/packages/react-native/Libraries/LogBox/__tests__/LogBox-itest.js @@ -781,7 +781,7 @@ describe('LogBox', () => { '\n\nCheck the top-level render call using . ' + 'It was passed a child from TestComponent. ' + 'See https://react.dev/link/warning-keys for more information.', - componentStackFrames: [], + componentStackFrames: ['', ''], isDismissable: true, }); }); @@ -818,7 +818,7 @@ describe('LogBox', () => { title: 'Console Error', message: 'Invalid prop `invalid` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.', - componentStackFrames: [], + componentStackFrames: [''], isDismissable: true, }); });