mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-22 20:52:13 +00:00
Flag all web-sys methods as structural
This was an intended change from #1019, but we forgot to apply it! Closes #1095
This commit is contained in:
parent
3e05489fd5
commit
9237d4cf2c
@ -687,7 +687,11 @@ pub fn is_structural(
|
|||||||
item_attrs: Option<&ExtendedAttributeList>,
|
item_attrs: Option<&ExtendedAttributeList>,
|
||||||
container_attrs: Option<&ExtendedAttributeList>,
|
container_attrs: Option<&ExtendedAttributeList>,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
has_named_attribute(item_attrs, "Unforgeable")
|
// Note that once host bindings is implemented we'll want to switch this
|
||||||
|
// from `true` to `false`, and then we'll want to largely read information
|
||||||
|
// from the WebIDL about whether to use structural bindings or not.
|
||||||
|
true
|
||||||
|
|| has_named_attribute(item_attrs, "Unforgeable")
|
||||||
|| has_named_attribute(container_attrs, "Unforgeable")
|
|| has_named_attribute(container_attrs, "Unforgeable")
|
||||||
|| has_ident_attribute(container_attrs, "Global")
|
|| has_ident_attribute(container_attrs, "Global")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user