Skip to content

Add RuntimeTargetDelegate::serializeStackTrace API - #54048

Closed
motiz88 wants to merge 1 commit into
react:mainfrom
motiz88:export-D83754142
Closed

Add RuntimeTargetDelegate::serializeStackTrace API#54048
motiz88 wants to merge 1 commit into
react:mainfrom
motiz88:export-D83754142

Conversation

@motiz88

@motiz88 motiz88 commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal]

Adds an engine-agnostic mechanism for serialising a previously captured stack trace as a CDP Runtime.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 within React Native, while keeping the underlying stack trace representation private to each engine.

Differential Revision: D83754142

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 3, 2025
@meta-codesync

meta-codesync Bot commented Oct 3, 2025

Copy link
Copy Markdown

@motiz88 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83754142.

Summary:

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
@meta-codesync meta-codesync Bot closed this in b31a2fb Oct 8, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 8, 2025
@meta-codesync

meta-codesync Bot commented Oct 8, 2025

Copy link
Copy Markdown

This pull request has been merged in b31a2fb.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @motiz88 in b31a2fb

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants