mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-28 05:52:21 +03:00
61491eafbf
This commit adds experimental support for `WeakRef` to be used to automatically free wasm objects instead of having to always call the `free` function manually. Note that when enabled the `free` function for all exported objects is still generated, it's just optionally invoked by the application. Support isn't exposed through a CLI flag right now due to the early stages of the `WeakRef` proposal, but the env var `WASM_BINDGEN_WEAKREF` can be used to enable this generation. Upon doing so the output can then be edited slightly as well to work in the SpiderMonkey shell and it looks like this is working! Closes #704 |
||
---|---|---|
.. | ||
backend | ||
cli | ||
cli-support | ||
futures | ||
js-sys | ||
macro | ||
macro-support | ||
shared | ||
test | ||
test-macro | ||
typescript | ||
web-sys | ||
webidl | ||
webidl-tests |