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

Maintain ObjectWrapper identity #1227

Merged
merged 1 commit into from Jul 16, 2022
Merged

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Jul 16, 2022

Add engine-level ConditionalWeakTable to track object wrappers to ensure old ones for same object are being reused, this solves identity problems when accessing same object instance multiple times from interop object's properties for example.

fixes #1192

@lahma lahma enabled auto-merge (squash) July 16, 2022 07:47
@lahma lahma merged commit a47b1cb into sebastienros:main Jul 16, 2022
@lahma lahma deleted the weakset-serialization branch July 16, 2022 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WeakSet should probably consider different ObjectWrappers for the same managed object as same JsValues
1 participant