dillon1000/react
Commit
Browse files [Flight] Recognize Node 22+ V8 frames for Promise statics in debug info (#36969)
## Summary Newer V8 versions (Node.js ≥ ~22) name the stack frames of static methods on the `Promise` constructor `Promise.all`, `Promise.race`, etc., where older versions named them `Function.all`, `Function.race`, etc. The `isPromiseCreationInternal` and `isPromiseAwaitInternal` allowlists in `ReactFlightServer` only matched the old spellings. ## How did you test this change? - `yarn test --no-watchman ReactFlightAsyncDebugInfo` — 18/18 pass on both Node 20.19.0 and Node 24.16.0 (previously, "can track async information when awaited" failed on Node 24) - `yarn test --silent --no-watchman packages/react-server/src/__tests__ packages/react-server-dom-webpack` — 243/243 pass on both Node versions, default and `-r=experimental` channels - `yarn test-www --silent --no-watchman packages/react-server/src/__tests__` with `__VARIANT__` true and false — pass - `yarn flow dom-node`, `yarn prettier`, `yarn linc` — pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5 <[email protected]>
Changed paths1 file
First-parent comparisonpackages/react-server/src/ReactFlightServer.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…