-
Notifications
You must be signed in to change notification settings - Fork 19
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
Improve documentation around calling .free
#522
Comments
Yeah... this part can be confusing. The tl;dr is that Functions exported from rust through wasm-bindgen can either take inputs by reference or by value, and the latter consumes the input object. Here, You can always check the > let wasm = require('parquet-wasm/node')
> let properties = new wasm.WriterPropertiesBuilder().build()
undefined
> properties.__wbg_ptr
2621480
> properties.free()
undefined
> properties.__wbg_ptr
0 |
Thank you! That was helpful I think adding that to the docstring and not erroring when this happens - stopping all execution - would be nice to have. A console.warn would be more suitable. |
That's not something I can control. That's part of the auto-generated bindings by rust's wasm-bindgen. |
Let's keep this open as a reminder to improve the documentation here |
.free
Reproduction
Output
I'm not very well aligned in this space, so let me know if this is expected for some reason. Thanks!
The text was updated successfully, but these errors were encountered: