Skip to content

fix: rename bottom stack frame #33680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Jul 1, 2025

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.

@hoxyq hoxyq requested review from sebmarkbage and rickhanlonii July 1, 2025 13:34
@hoxyq hoxyq force-pushed the rename-react-stack-bottom-frame branch from a36128f to f63d436 Compare July 1, 2025 13:36
Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, cc @sebmarkbage

@react-sizebot
Copy link

react-sizebot commented Jul 1, 2025

Comparing: 7216c0f...a8c869c

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.57 kB 530.57 kB = 93.67 kB 93.67 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 651.66 kB 651.66 kB = 114.78 kB 114.78 kB
facebook-www/ReactDOM-prod.classic.js = 674.81 kB 674.81 kB = 118.78 kB 118.78 kB
facebook-www/ReactDOM-prod.modern.js = 665.30 kB 665.30 kB = 117.20 kB 117.19 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against a8c869c

Copy link
Collaborator

@sebmarkbage sebmarkbage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have to check for both in versioned code.

@hoxyq hoxyq force-pushed the rename-react-stack-bottom-frame branch from f63d436 to a8c869c Compare July 1, 2025 16:52
@hoxyq hoxyq merged commit 91d097b into facebook:main Jul 1, 2025
241 checks passed
@hoxyq hoxyq deleted the rename-react-stack-bottom-frame branch July 1, 2025 17:07
github-actions bot pushed a commit that referenced this pull request Jul 1, 2025
`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 [91d097b](91d097b)
github-actions bot pushed a commit that referenced this pull request Jul 1, 2025
`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 [91d097b](91d097b)
hoxyq added a commit to hoxyq/react-native that referenced this pull request Jul 3, 2025
Summary:
# Changelog: [Internal]

Adaptation for facebook/react#33680.

Reviewed By: jackpope

Differential Revision: D77737710
hoxyq added a commit to hoxyq/react-native that referenced this pull request Jul 3, 2025
Summary:

# Changelog: [Internal]

Adaptation for facebook/react#33680.

Reviewed By: jackpope

Differential Revision: D77737710
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Jul 3, 2025
Summary:
Pull Request resolved: #52398

# Changelog: [Internal]

Adaptation for facebook/react#33680.

Reviewed By: jackpope

Differential Revision: D77737710

fbshipit-source-id: 6c6893935e8da8175c0cd9ceab21cc05e2092e7a
hoxyq added a commit that referenced this pull request Jul 4, 2025
…n name (#33697)

Follow-up to #33680.

Turns out `.getFunctionName` not always returns string.
hoxyq added a commit that referenced this pull request Jul 4, 2025
Changes from 6.1.3:
* feat: static Components panel layout
([hoxyq](https://github.com/hoxyq) in
[#33696](#33696))
* fix: support optionality of structured stack trace function name
([hoxyq](https://github.com/hoxyq) in
[#33697](#33697))
* fix: rename bottom stack frame ([hoxyq](https://github.com/hoxyq) in
[#33680](#33680))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants