aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2017-02-08 12:37:17 +0100
committerMs2ger <Ms2ger@gmail.com>2017-02-08 12:37:17 +0100
commit7d5320f419bd423bdab7c645c08ea3e57d031ab3 (patch)
treeefb792de1aa23c3babd6f422c58db5d28dc599b1 /components/script
parent507b4bf05e594c42a38abfdd478b76cd06b4d272 (diff)
downloadservo-7d5320f419bd423bdab7c645c08ea3e57d031ab3.tar.gz
servo-7d5320f419bd423bdab7c645c08ea3e57d031ab3.zip
Remove pointless assertion in the typedef code.
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py1
-rw-r--r--components/script/dom/webidls/TestBinding.webidl1
2 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 5df915a9e17..9e96c932f48 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -6132,7 +6132,6 @@ class CGBindingRoot(CGThing):
# Allow using the typedef's name for accessing variants.
template = "pub use self::%(type)s as %(name)s;"
else:
- assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider())
template = "pub type %(name)s = %(type)s;"
cgthings.append(CGGeneric(template % substs))
diff --git a/components/script/dom/webidls/TestBinding.webidl b/components/script/dom/webidls/TestBinding.webidl
index d688c0d96b6..fc6d4771366 100644
--- a/components/script/dom/webidls/TestBinding.webidl
+++ b/components/script/dom/webidls/TestBinding.webidl
@@ -9,6 +9,7 @@ enum TestEnum { "", "foo", "bar" };
typedef (DOMString or URL or Blob) TestTypedef;
typedef (DOMString or URL or Blob)? TestTypedefNullableUnion;
typedef DOMString TestTypedefString;
+typedef Blob TestTypedefInterface;
dictionary TestDictionary {
required boolean requiredValue;