[wip] support variadic javascript function parameters

This commit is contained in:
Richard Dodd
2018-08-18 22:15:29 +01:00
parent 57693ee11a
commit d9fd2147a0
6 changed files with 81 additions and 0 deletions

View File

@ -85,6 +85,7 @@ pub struct ImportFunction {
pub rust_name: Ident,
pub js_ret: Option<syn::Type>,
pub catch: bool,
pub variadic: bool,
pub structural: bool,
pub kind: ImportFunctionKind,
pub shim: Ident,
@ -449,6 +450,7 @@ impl ImportFunction {
shared::ImportFunction {
shim: self.shim.to_string(),
catch: self.catch,
variadic: self.variadic,
method,
structural: self.structural,
function: self.function.shared(),