aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2017-02-16 15:34:53 +0100
committerMs2ger <Ms2ger@gmail.com>2017-02-16 15:34:53 +0100
commitfb8eb1db650e0902ee6909b4142c0e942a12943d (patch)
treef3176f2e89d66cfaf4dcb64415bbdc9c4bbeee59 /components/script/dom/testbinding.rs
parentd5f8b35a5f65549615c2c574e479aa4596bd06f8 (diff)
downloadservo-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.rs2
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)]