1
0
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 
This commit is contained in:
Alex Crichton
2018-04-14 09:13:07 -07:00
parent c1df44189e
commit c64f178543
7 changed files with 577 additions and 466 deletions

File diff suppressed because it is too large Load Diff