mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 17:51:33 +00:00
Fix anyref closure transformations
* Catch all closures by walking all `Descriptor` values and looking for either `Function` or `Closure`. * Update the correct arguments for wasm by ensuring that the closure modifications skip the first two arguments.
This commit is contained in:
@ -109,7 +109,7 @@ impl Slab {
|
||||
None => internal_error("slot out of bounds"),
|
||||
};
|
||||
}
|
||||
self.data.len() as u32 - free_count - super::JSIDX_RESERVED
|
||||
self.data.len() as u32 - free_count
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user