From 9237d4cf2ceacceb3ff70f95a4f43fccdcf2461f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 17 Dec 2018 10:43:48 -0800 Subject: [PATCH] Flag all web-sys methods as `structural` This was an intended change from #1019, but we forgot to apply it! Closes #1095 --- crates/webidl/src/util.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/webidl/src/util.rs b/crates/webidl/src/util.rs index 6da1c3d4ec0..412e45d7c66 100644 --- a/crates/webidl/src/util.rs +++ b/crates/webidl/src/util.rs @@ -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") }