1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-04-05 03:41:05 +00:00

cli-support: Fix copy-pasted error message

This error case is for an invalid free function, not an invalid constructor.
This commit is contained in:
Nick Fitzgerald 2019-07-10 12:49:44 -07:00
parent 21fe8dc706
commit f2a4694c69

@ -2060,7 +2060,7 @@ impl<'a> Context<'a> {
ast::WebidlFunctionKind::Static => { ast::WebidlFunctionKind::Static => {
let js = match val { let js = match val {
AuxValue::Bare(js) => self.import_name(js)?, AuxValue::Bare(js) => self.import_name(js)?,
_ => bail!("invalid import set for constructor"), _ => bail!("invalid import set for free function"),
}; };
Ok(format!("{}({})", js, variadic_args(&args)?)) Ok(format!("{}({})", js, variadic_args(&args)?))
} }