Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove code which was causing proxy crash #4257

Merged
merged 3 commits into from
Jan 25, 2022
Merged

Remove code which was causing proxy crash #4257

merged 3 commits into from
Jan 25, 2022

Conversation

tomduncalf
Copy link
Contributor

@tomduncalf tomduncalf commented Jan 24, 2022

Crash could be reproduced with e.g.:

people = realm.objects(Person);
peopleProxy = new Proxy(people, {get: () => {} });
Object.prototype.toString.call(peopleProxy);

What, How & Why?

This closes # ???

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 🚦 Tests
  • 📱 Check the React Native/other sample apps work if necessary
  • 📝 Public documentation PR created or is not necessary
  • 💥 Breaking label has been applied or is not necessary

If this PR adds or changes public API's:

  • typescript definitions file is updated
  • jsdoc files updated
  • Chrome debug API is updated if API is available on React Native

@cla-bot cla-bot bot added the cla: yes label Jan 24, 2022
Crash could be reproduced with e.g.:
```
people = realm.objects(Person);
peopleProxy = new Proxy(people, {get: () => {} });
Object.prototype.toString.call(peopleProxy);
```
src/node/node_class.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@takameyer takameyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on finding this one!

@tomduncalf tomduncalf merged commit f625b6a into master Jan 25, 2022
@tomduncalf tomduncalf deleted the td/proxy-fix branch January 25, 2022 15:49
@somebody32
Copy link

I wonder if this could help with another Proxy problem and Hermes? #4119

@kraenhansen
Copy link
Member

@somebody32 unfortunately not. This PR applies only to our Node.js integration.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants