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

Isolate method bindings to each node instance #119

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

drborges
Copy link
Owner

Ensure method bindings are isolated to each node instance.

Before this fix, nodes of the same type would reuse the same method binding because JS shares class prototypes across instances, e.g. methods have the same memory reference across instances.

This would cause an issue where method calls on any instance of the same class to act on the first instance that references the corresponding method.

See test case for more details.

@drborges drborges merged commit 475d870 into main Jun 17, 2024
2 checks passed
@drborges drborges deleted the fix-method-binding-mechanism branch June 17, 2024 01:26
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.

1 participant