Skip to content

ISerialization methods should take in const jsi::Value& (#56410) - #56410

Closed
tsaichien wants to merge 1 commit into
react:mainfrom
tsaichien:export-D100222030
Closed

tsaichien wants to merge 1 commit into
react:mainfrom
tsaichien:export-D100222030

Conversation

@tsaichien

@tsaichien tsaichien commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Missed when we first added the ISerialization interface. In JSI APIs,
Value is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

@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 Apr 9, 2026
@meta-codesync

meta-codesync Bot commented Apr 9, 2026

Copy link
Copy Markdown

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

@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Apr 9, 2026
@meta-codesync meta-codesync Bot changed the title ISerialization methods takes in const jsi::Value& ISerialization methods should take in const jsi::Value& (#56410) Apr 9, 2026
tsaichien added a commit to tsaichien/react-native that referenced this pull request Apr 9, 2026
Summary:

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Differential Revision: D100222030
@tsaichien
tsaichien force-pushed the export-D100222030 branch from 15dddfa to e851957 Compare April 9, 2026 20:48
Summary:
Pull Request resolved: react#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030
@tsaichien
tsaichien force-pushed the export-D100222030 branch from e851957 to 963a7b4 Compare April 9, 2026 20:53
meta-codesync Bot pushed a commit to meta/hermes that referenced this pull request Apr 13, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
meta-codesync Bot pushed a commit to meta/hermes that referenced this pull request Apr 13, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
meta-codesync Bot pushed a commit to meta/hermes that referenced this pull request Apr 13, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
@meta-codesync meta-codesync Bot closed this in 36b3060 Apr 13, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label Apr 13, 2026
@meta-codesync

meta-codesync Bot commented Apr 13, 2026

Copy link
Copy Markdown

This pull request has been merged in 36b3060.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @tsaichien in 36b3060

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

Saadnajmi pushed a commit to Saadnajmi/hermes that referenced this pull request Apr 15, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
tsaichien added a commit to tsaichien/hermes that referenced this pull request Apr 15, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
tsaichien added a commit to tsaichien/hermes that referenced this pull request Apr 15, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
tsaichien added a commit to tsaichien/hermes that referenced this pull request Apr 15, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
tsaichien added a commit to meta/hermes that referenced this pull request Apr 16, 2026
Summary:
X-link: react/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
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.

2 participants