mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
Add examples/documentation for closures
This commit is contained in:
@ -255,6 +255,12 @@ impl<'a> Context<'a> {
|
||||
dropRef(i);
|
||||
}")
|
||||
});
|
||||
bind("__wbindgen_cb_forget", &|me| {
|
||||
me.expose_drop_ref();
|
||||
String::from("function(i) {
|
||||
dropRef(i);
|
||||
}")
|
||||
});
|
||||
}
|
||||
|
||||
self.rewrite_imports(module_name);
|
||||
|
Reference in New Issue
Block a user