mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 15:31:25 +00:00
Use the JS name of an imported type for instanceof
checks
This commit is contained in:
@ -244,7 +244,8 @@ impl<'src> WebidlParse<'src, ()> for weedle::InterfaceDefinition<'src> {
|
||||
js_namespace: None,
|
||||
kind: backend::ast::ImportKind::Type(backend::ast::ImportType {
|
||||
vis: public(),
|
||||
name: rust_ident(camel_case_ident(self.identifier.0).as_str()),
|
||||
rust_name: rust_ident(camel_case_ident(self.identifier.0).as_str()),
|
||||
js_name: self.identifier.0.to_string(),
|
||||
attrs: Vec::new(),
|
||||
doc_comment,
|
||||
instanceof_shim: format!("__widl_instanceof_{}", self.identifier.0),
|
||||
|
Reference in New Issue
Block a user