Skip to content

Commit f2a4694

Browse files
committed
cli-support: Fix copy-pasted error message
This error case is for an invalid free function, not an invalid constructor.
1 parent 21fe8dc commit f2a4694

File tree

1 file changed

+1
-1
lines changed
  • crates/cli-support/src/js

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ impl<'a> Context<'a> {
20602060
ast::WebidlFunctionKind::Static => {
20612061
let js = match val {
20622062
AuxValue::Bare(js) => self.import_name(js)?,
2063-
_ => bail!("invalid import set for constructor"),
2063+
_ => bail!("invalid import set for free function"),
20642064
};
20652065
Ok(format!("{}({})", js, variadic_args(&args)?))
20662066
}

0 commit comments

Comments
 (0)