diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-02-16 15:34:53 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-02-16 15:34:53 +0100 |
commit | fb8eb1db650e0902ee6909b4142c0e942a12943d (patch) | |
tree | f3176f2e89d66cfaf4dcb64415bbdc9c4bbeee59 /components/script/dom/testbinding.rs | |
parent | d5f8b35a5f65549615c2c574e479aa4596bd06f8 (diff) | |
download | servo-fb8eb1db650e0902ee6909b4142c0e942a12943d.tar.gz servo-fb8eb1db650e0902ee6909b4142c0e942a12943d.zip |
Add a object-in-union test.
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 3be8597ed41..d9defc53770 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -436,6 +436,8 @@ impl TestBindingMethods for TestBinding { fn PassUnion7(&self, _: StringSequenceOrUnsignedLong) {} fn PassUnion8(&self, _: ByteStringSequenceOrLong) {} fn PassUnion9(&self, _: RootedTraceableBox<UnionTypes::TestDictionaryOrLong>) {} + #[allow(unsafe_code)] + unsafe fn PassUnion10(&self, _: *mut JSContext, _: RootedTraceableBox<UnionTypes::StringOrObject>) {} fn PassUnionWithTypedef(&self, _: DocumentOrTestTypedef) {} fn PassUnionWithTypedef2(&self, _: LongSequenceOrTestTypedef) {} #[allow(unsafe_code)] |