Skip to content

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

Open
tsaichien wants to merge 1 commit intofacebook:mainfrom
tsaichien:export-D100222030
Open

ISerialization methods should take in const jsi::Value& (#56410)#56410
tsaichien wants to merge 1 commit intofacebook:mainfrom
tsaichien:export-D100222030

Conversation

@tsaichien
Copy link
Copy Markdown
Contributor

@tsaichien tsaichien commented 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]

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
Copy link
Copy Markdown

meta-codesync bot commented Apr 9, 2026

@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
…6410)

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
…6410)

Summary:
Pull Request resolved: facebook#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
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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant