mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 10:10:52 +00:00
This commit fixes an issue where bindings for `__wbindgen_object_drop_ref` are generated even if the function isn't actually used by the final wasm file. This is currently due to the fact that we run gc passes pretty late in wasm-bindgen and one of the intrinsics that ended up getting gc'd referenced the `__wbindgen_object_drop_ref` intrinsic function. The fix here is somewhat naive by just updating the intrinsic to not actually use `__wbindgen_object_drop_ref`. This may not be a long-term solution but it should be good enough for now at least.