diff --git a/components/plugins/jstraceable.rs b/components/plugins/jstraceable.rs index 9bc9ead6299..609f3e51481 100644 --- a/components/plugins/jstraceable.rs +++ b/components/plugins/jstraceable.rs @@ -14,6 +14,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat item2.attrs.push(quote_attr!(cx, #[repr(C)])); item2.attrs.push(quote_attr!(cx, #[derive(JSTraceable)])); item2.attrs.push(quote_attr!(cx, #[derive(HeapSizeOf)])); + item2.attrs.push(quote_attr!(cx, #[derive(DenyPublicFields)])); item2.attrs.push(quote_attr!(cx, #[derive(DomObject)])); // #[dom_struct] gets consumed, so this lets us keep around a residue // Do NOT register a modifier/decorator on this attribute