Skip to content

Conversation

tsaichien
Copy link
Contributor

Summary:
Add a new deleteProperty API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses Reflect.deleteProperty. For the
PropNameID overload, convert the propNameID to a String and pass into
the deleteProperty function.

Changelog: [Internal]

Differential Revision: D79120814

@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 Jul 29, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

tsaichien added a commit to tsaichien/react-native that referenced this pull request Jul 29, 2025
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

tsaichien added a commit to tsaichien/react-native that referenced this pull request Jul 29, 2025
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 8, 2025
Summary:

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 8, 2025
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
@tsaichien tsaichien force-pushed the export-D79120814 branch 2 times, most recently from b5bde4d to 28fab62 Compare August 15, 2025 17:55
tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 15, 2025
Summary:

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 15, 2025
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 15, 2025
Summary:

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 15, 2025
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Differential Revision: D79120814
@tsaichien tsaichien force-pushed the export-D79120814 branch 2 times, most recently from 9862f0f to 0356962 Compare August 18, 2025 21:37
tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 18, 2025
Summary:

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D79120814
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 18, 2025
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D79120814
@tsaichien tsaichien force-pushed the export-D79120814 branch 2 times, most recently from d371943 to 210bfb5 Compare August 21, 2025 21:30
tsaichien added a commit to tsaichien/react-native that referenced this pull request Aug 21, 2025
Summary:

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D79120814
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D79120814
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79120814

facebook-github-bot pushed a commit to facebook/hermes that referenced this pull request Aug 22, 2025
Summary:
X-link: facebook/react-native#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D79120814

fbshipit-source-id: e30f383247d94bb5971e4909f004c75e8165adda
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @tsaichien in 646945c

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

@react-native-bot react-native-bot added the Merged This PR has been merged. label Aug 22, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 646945c.

facebook-github-bot pushed a commit to facebook/hermes that referenced this pull request Aug 22, 2025
Summary:
X-link: facebook/react-native#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D79120814

fbshipit-source-id: e30f383247d94bb5971e4909f004c75e8165adda
kikoso pushed a commit to kikoso/react-native that referenced this pull request Aug 26, 2025
Summary:
Pull Request resolved: facebook#52911

Add a new `deleteProperty` API to JSI. As the name implies, allows users
to delete properties from Objects through JSI.

The default implementation uses `Reflect.deleteProperty.` For the
`PropNameID` overload, convert the propNameID to a String and pass into
the `deleteProperty` function.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D79120814

fbshipit-source-id: e30f383247d94bb5971e4909f004c75e8165adda
@mrousavy
Copy link
Contributor

Hey - we don't have jsi::Object::defineProperty yet, do we?

If not I could take a stab at implementing that one.

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. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants