mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +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:
parent
21fe8dc706
commit
f2a4694c69
@ -2060,7 +2060,7 @@ impl<'a> Context<'a> {
|
||||
ast::WebidlFunctionKind::Static => {
|
||||
let js = match val {
|
||||
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)?))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user