1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-28 12:11:34 +00:00

Support multi-value JS engines ()

This commit adds support to wasm-bindgen to run over interface
types-enabled modules that use multi-value returns and returns are
loaded from the returned array rather than from memory.
This commit is contained in:
Alex Crichton
2019-11-19 10:44:56 -06:00
committed by GitHub
parent 851390089b
commit e934a0f3d3
2 changed files with 17 additions and 4 deletions
crates/cli-support/src

@ -85,7 +85,7 @@ pub fn typescript(module: &Module) -> Result<String, Error> {
ret = match ty.results().len() {
0 => "void",
1 => "number",
_ => bail!("cannot support multi-return yet"),
_ => "Array",
},
));
}