mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-24 18:21:33 +00:00
Support closures with "rich" arguments
This commit adds support for closures with arguments like strings and such. In other words, closures passed to JS can now have the same suite of arguments as all functions that can be exported from Rust, as one might expect! At this time due to the way trait objects work closures still cannot use types with references like `&str`, but bare values like `String` or `ImportedType` should work just fine. Closes #104
This commit is contained in:
1636
crates/cli-support/src/js/mod.rs
Normal file
1636
crates/cli-support/src/js/mod.rs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user