Skip to content

Commit

Permalink
Flag all web-sys methods as structural
Browse files Browse the repository at this point in the history
This was an intended change from rustwasm#1019, but we forgot to apply it!

Closes rustwasm#1095
  • Loading branch information
alexcrichton committed Dec 17, 2018
1 parent 3e05489 commit 9237d4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/webidl/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,11 @@ pub fn is_structural(
item_attrs: Option<&ExtendedAttributeList>,
container_attrs: Option<&ExtendedAttributeList>,
) -> 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_ident_attribute(container_attrs, "Global")
}
Expand Down

0 comments on commit 9237d4c

Please sign in to comment.