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

add verbose name for internal ptr property #3408

Merged
merged 2 commits into from
May 8, 2023

Conversation

snOm3ad
Copy link
Contributor

@snOm3ad snOm3ad commented Apr 28, 2023

This PR changes the name of the ptr property to __wbg_ptr during the JS generation step this prevents clashes with public struct fields in Rust client code.

Fixes #3388

@daxpedda
Copy link
Collaborator

Some tests fail, you can ignore the "UI compile-fail tests", but the "wasm-bindgen crate tests" are legit failures.

Signed-off-by: Oliver T <[email protected]>
@alexcrichton
Copy link
Contributor

Thanks!

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.

Using "ptr" as struct field name causes infinite loop
3 participants