A framework for building native applications using React
Add RuntimeTargetDelegate::serializeStackTrace API (#54048)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54048 Changelog: [Internal] Adds an engine-agnostic mechanism for serialising a previously captured stack trace as a CDP [`Runtime.StackTrace`](https://cdpstatus.reactnative.dev/devtools-protocol/tot/Runtime#type-StackTrace). This complements the existing `RuntimeTargetDelegate::captureStackTrace` method, which returns an opaque, engine-specific representation of a stack trace. This can be used as a building block for implementing higher-level CDP message types like [`Network.Initiator`](https://cdpstatus.reactnative.dev/devtools-protocol/tot/Network#type-Initiator) within React Native, while keeping the underlying stack trace representation private to each engine. NOTE: This diff includes an implementation for Hermes that duplicates logic from the Hermes codebase. Further up the stack, I have diffs to replace this with a new API to be provided by Hermes. Reviewed By: huntie Differential Revision: D83754142 fbshipit-source-id: 1439ea446665562e5f92c7b1dcb6ab65af1324cd
M
Moti Zilberman committed
b31a2fb4b8d3a5e1f12efc8ec3951a0e02004757
Parent: e32307e
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 10/8/2025, 12:51:42 PM