mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 21:41:23 +00:00
Rewrite weakrefs to use current proposal
This commit is contained in:
@ -488,8 +488,8 @@ impl<'a, 'b> Js2Rust<'a, 'b> {
|
||||
if self.cx.config.weak_refs {
|
||||
self.ret_expr.push_str(&format!(
|
||||
"\
|
||||
addCleanup(this, this.ptr, free{});
|
||||
",
|
||||
{}FinalizationGroup.register(this, this.ptr, this.ptr);
|
||||
",
|
||||
name
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user