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

Fix codegen of consuming setters/getters #2172

Merged
merged 1 commit into from
May 29, 2020

Conversation

alexcrichton
Copy link
Contributor

Make sure they reset their internal pointer to null after we call Rust
since it invalidates the Rust pointer after being called!

Closes #2168

Make sure they reset their internal pointer to null after we call Rust
since it invalidates the Rust pointer after being called!

Closes rustwasm#2168
@alexcrichton alexcrichton merged commit cc36bdc into rustwasm:master May 29, 2020
@alexcrichton alexcrichton deleted the consume-getter branch May 29, 2020 20:28
Perseus101 pushed a commit to Perseus101/wasm-bindgen that referenced this pull request Jun 7, 2020
Make sure they reset their internal pointer to null after we call Rust
since it invalidates the Rust pointer after being called!

Closes rustwasm#2168
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.

Getter/setter attribute on functions that take self causes memory access out of bounds.
1 participant