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 support for wasm-bindgen --weak-refs flag #930

Closed
mmgeorge opened this issue Oct 27, 2020 · 1 comment · Fixed by #937
Closed

Add support for wasm-bindgen --weak-refs flag #930

mmgeorge opened this issue Oct 27, 2020 · 1 comment · Fixed by #937
Labels
feature request PR attached there's a PR open for this issue

Comments

@mmgeorge
Copy link

💡 Feature description

The wasm-bindgen --weak-refs flag adds support for using TC39 Weak References proposal to garbage collect rust objects avoiding the need to explicitly call free. Currently this is supported on major browsers with the exception of Safari.

It would be great if we could pass this down to wasm-bindgen using wasm-pack.

@bes
Copy link

bes commented Dec 22, 2021

Safari 14.1 added support for weak refs. Safari 14.1 was released April 26, 2021.

This feature would be very appreciated 👍

Edit: Supported on iOS Safari from 14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request PR attached there's a PR open for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants